File tree Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
- FROM python:2.7
1
+ ARG PYTHON_VERSION=2.7
2
+
3
+ FROM python:${PYTHON_VERSION}
2
4
3
5
RUN mkdir /src
4
6
WORKDIR /src
Original file line number Diff line number Diff line change 1
- FROM python:3.5
1
+ ARG PYTHON_VERSION=3.7
2
+
3
+ FROM python:${PYTHON_VERSION}
2
4
3
5
ARG uid=1000
4
6
ARG gid=1000
Original file line number Diff line number Diff line change 1
- FROM python:3.6
1
+ ARG PYTHON_VERSION=3.7
2
+
3
+ FROM python:${PYTHON_VERSION}
2
4
3
5
RUN mkdir /src
4
6
WORKDIR /src
Original file line number Diff line number Diff line change 1
- ARG PYTHON_VERSION=3.6
2
- FROM python:$PYTHON_VERSION-jessie
1
+ ARG PYTHON_VERSION=3.7
2
+
3
+ FROM python:${PYTHON_VERSION}
3
4
RUN apt-get update && apt-get -y install \
4
5
gnupg2 \
5
6
pass \
@@ -8,7 +9,7 @@ RUN apt-get update && apt-get -y install \
8
9
COPY ./tests/gpg-keys /gpg-keys
9
10
RUN gpg2 --import gpg-keys/secret
10
11
RUN gpg2 --import-ownertrust gpg-keys/ownertrust
11
- RUN yes | pass init $(gpg2 --no-auto-check-trustdb --list-secret-keys | grep ^sec | cut -d/ -f2 | cut -d " " -f1 )
12
+ RUN yes | pass init $(gpg2 --no-auto-check-trustdb --list-secret-key | awk '/ ^sec/{getline; $1=$1; print}' )
12
13
RUN gpg2 --check-trustdb
13
14
ARG CREDSTORE_VERSION=v0.6.2
14
15
RUN curl -sSL -o /opt/docker-credential-pass.tar.gz \
Original file line number Diff line number Diff line change 1
- FROM python:2.7
1
+ ARG PYTHON_VERSION=2.7
2
+
3
+ FROM python:${PYTHON_VERSION}
2
4
RUN mkdir /tmp/certs
3
5
VOLUME /certs
4
6
You can’t perform that action at this time.
0 commit comments