Skip to content

Commit ac49b85

Browse files
committed
changed context for build; added chckout to dev in Dockers
1 parent 03b7c2f commit ac49b85

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/docker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ jobs:
2424
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
2525

2626
- name: Build and Push Gitpod Image
27+
working-directory: Docker
2728
uses: docker/build-push-action@v6
2829
with:
2930
platforms: linux/amd64
30-
context: Docker
3131
push: true
3232
file: Dockerfile.gitpod
3333
tags: rustlluk/pycub:gitpod
3434

3535
- name: Build and Push VNC Image
36+
working-directory: Docker
3637
uses: docker/build-push-action@v6
3738
with:
3839
platforms: linux/amd64,linux/arm64
39-
context: Docker
4040
push: true
4141
file: Dockerfile.vnc
4242
tags: rustlluk/pycub:vnc
4343

4444
- name: Build and Push Standard Image
45+
working-directory: Docker
4546
uses: docker/build-push-action@v6
4647
with:
4748
platforms: linux/amd64,linux/arm64
48-
context: Docker
4949
push: true
5050
file: Dockerfile
5151
tags: rustlluk/pycub:latest

Docker/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ RUN echo "export PATH=/usr/local/bin:$PATH" >> /home/docker/.bashrc
5757

5858
# pybullet, robot_description, numpy, etc.
5959
RUN python$PYTHON_VER -m pip install --user --upgrade pip && python$PYTHON_VER -m pip install pybullet "numpy<2" scipy cython matplotlib roboticstoolbox-python --ignore-installed --verbose --no-cache-dir
60+
RUN cd /home/docker && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && git checkout dev && python$PYTHON_VER setup.py install --user
6061

6162
# Delete thingies from aptitude
6263
RUN rm -Rf /var/lib/apt/lists/*

Docker/Dockerfile.gitpod

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ RUN echo "export PORT=5901" >> /home/gitpod/.bashrc
9292
RUN python$PYTHON_VER -m pip install --user --upgrade pip && python$PYTHON_VER -m pip install "numpy<2" cython open3d pybullet roboticstoolbox-python --ignore-installed
9393

9494
USER gitpod
95-
RUN cd /home/gitpod && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && python$PYTHON_VER setup.py install --user
95+
RUN cd /home/gitpod && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && git checkout dev && python$PYTHON_VER setup.py install --user
9696

9797
RUN sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python && sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python3
9898
RUN echo "export PATH=/usr/local/bin:$PATH" >> /home/gitpod/.bashrc

Docker/Dockerfile.vnc

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ RUN echo "export PORT=5999" >> /home/docker/.bashrc
9999
RUN python$PYTHON_VER -m pip install --user --upgrade pip && python$PYTHON_VER -m pip install "numpy<2" cython open3d pybullet roboticstoolbox-python --ignore-installed
100100

101101
USER docker
102-
RUN cd /home/docker && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && python$PYTHON_VER setup.py install --user
102+
RUN cd /home/docker && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && git checkout dev && python$PYTHON_VER setup.py install --user
103103

104104
RUN sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python && sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python3
105105
RUN echo "export PATH=/usr/local/bin:$PATH" >> /home/docker/.bashrc

0 commit comments

Comments
 (0)