Skip to content

Commit 45c25ba

Browse files
committed
Fix Dockerfile's
1 parent 62b1fd5 commit 45c25ba

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

Dockerfile.ubuntu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN apt-get update && \
2424
libcurl4-openssl-dev \
2525
inetutils-ping \
2626
&& rm -rf /var/lib/apt/lists/* \
27+
&& c_rehash \
2728
&& cd /tmp \
2829
&& curl -sL https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz -o git.tgz \
2930
&& tar zxf git.tgz \
@@ -35,7 +36,7 @@ RUN apt-get update && \
3536
&& rm -rf /tmp/git.tgz /tmp/git-${GIT_VERSION}
3637

3738
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
38-
&& add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
39+
&& [[ $(lsb_release -cs) == "eoan" ]] && ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu disco stable" ) || ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" )\
3940
&& apt-get update \
4041
&& apt-get install -y docker-ce --no-install-recommends \
4142
&& rm -rf /var/lib/apt/lists/*

Dockerfile.ubuntu-bionic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN apt-get update && \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
21-
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
21+
&& add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
2222
&& apt-get update \
2323
&& apt-get install -y docker-ce --no-install-recommends \
2424
&& rm -rf /var/lib/apt/lists/*

Dockerfile.ubuntu-xenial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN apt-get update && \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
21-
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
21+
&& add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
2222
&& apt-get update \
2323
&& apt-get install -y docker-ce --no-install-recommends \
2424
&& rm -rf /var/lib/apt/lists/*

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,21 @@ This has been tested and verified on:
77

88
* x86_64
99
* armhf
10+
* armv7
11+
* arm64
1012

1113
## Examples ##
1214

1315
Manual:
1416

15-
### X86_64 ###
16-
1717
```
1818
docker run -it \
1919
-e REPO_URL="https://github.com/myoung34/LEDSpicer" \
2020
-e RUNNER_TOKEN="footoken" \
2121
myoung34/github-runner:latest
2222
```
2323

24-
### ARMHF (raspberry pi) ###
25-
26-
```
27-
docker run -it \
28-
-e REPO_URL="https://github.com/myoung34/LEDSpicer" \
29-
-e RUNNER_TOKEN="footoken" \
30-
myoung34/github-runner:latest-arm
31-
```
24+
Or as an alias:
3225

3326
```
3427
function run-server {

0 commit comments

Comments
 (0)