Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker Action Runners #142

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions tools/action-runners/Dockerfile_Jammy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG UBUNTU_MAJOR="22"
ARG CUDA_MAJOR="11"
ARG CUDA_MINOR="7"
ARG CUDA_PATCH="0"
ARG RUNNER_VERSION="2.309.0"
ARG RUNNER_VERSION="2.310.2"
ENV DEBIAN_FRONTEND=noninteractive

# Set Labels
Expand All @@ -32,17 +32,19 @@ RUN cd /home/docker && mkdir actions-runner && cd actions-runner \
# install some additional dependencies
RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh

# add over the start.sh script
COPY scripts/start.sh start.sh

# make the script executable
RUN chmod +x start.sh

# Set Ownership of Autonomy Software
RUN chown -R docker /opt/Autonomy_Software/
RUN chown docker -R /usr/local/zed
RUN chown docker -R /usr/local/cuda

# set the user to "docker" so all subsequent commands are run as the docker user
USER docker

# add over the start.sh script
RUN wget https://raw.githubusercontent.com/MissouriMRDT/Autonomy_Software/development/tools/action-runners/scripts/start.sh start.sh

# make the script executable
RUN chmod +x start.sh

# set the entrypoint to the start.sh script
ENTRYPOINT ["./start.sh"]
14 changes: 7 additions & 7 deletions tools/action-runners/Dockerfile_JetPack
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG L4T_MINOR="3"
ARG L4T_PATCH="1"
ARG L4T_BASE="l4t-jetpack"
ARG CUDA_PATCH="0"
ARG RUNNER_VERSION="2.309.0"
ARG RUNNER_VERSION="2.310.2"
ENV DEBIAN_FRONTEND=noninteractive

# Set Labels
Expand All @@ -33,18 +33,18 @@ RUN cd /home/docker && mkdir actions-runner && cd actions-runner \
# install some additional dependencies
RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh

# add over the start.sh script
ADD scripts/start.sh start.sh

# make the script executable
RUN chmod +x start.sh

RUN chown docker -R /opt/Autonomy_Software
RUN chown docker -R /usr/local/zed
RUN chown docker -R /usr/local/cuda

# set the user to "docker" so all subsequent commands are run as the docker user
USER docker

# add over the start.sh script
RUN wget https://raw.githubusercontent.com/MissouriMRDT/Autonomy_Software/development/tools/action-runners/scripts/start.sh start.sh

# make the script executable
RUN chmod +x start.sh

# set the entrypoint to the start.sh script
ENTRYPOINT ["./start.sh"]
4 changes: 2 additions & 2 deletions tools/action-runners/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
context: .
dockerfile: Dockerfile_Jammy
args:
RUNNER_VERSION: '2.309.0'
RUNNER_VERSION: '2.310.2'
command: unix-connect:/var/run/docker.sock
deploy:
replicas: 5
Expand All @@ -32,7 +32,7 @@ services:
context: .
dockerfile: Dockerfile_JetPack
args:
RUNNER_VERSION: '2.309.0'
RUNNER_VERSION: '2.310.2'
command: unix-connect:/var/run/docker.sock
deploy:
replicas: 1
Expand Down