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

fix - docker install container build #12

Merged
merged 2 commits into from
Dec 30, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Docker Build

on:
schedule:
- cron: '0 10 1 1-12 *'
push:
branches:
- main
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ARG TARGETARCH
RUN echo "Detected architecture: ${TARGETARCH}"

ENV RUNNER_ARCH=${RUNNER_ARCH}

Check warning on line 8 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-test

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$RUNNER_ARCH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 8 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-test

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$RUNNER_ARCH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 8 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-test

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$RUNNER_ARCH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

ENV DEBIAN_FRONTEND=noninteractive

Expand All @@ -19,8 +19,10 @@
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://get.docker.com -o get-docker.sh \
sh get-docker.sh
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
chmod +x get-docker.sh && \
sh get-docker.sh && \
rm get-docker.sh

WORKDIR /runner

Expand All @@ -43,7 +45,6 @@
RUN useradd -m -s /bin/bash runner && \
echo "runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

RUN sudo groupadd docker
RUN sudo usermod -aG docker runner

RUN chown -R runner:runner /runner
Expand Down
Loading