Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 45ddef5

Browse files
authored
Merge pull request #15 from linuxserver/alpine-tox
update tox and virtualenv
2 parents 069f072 + 8f60a35 commit 45ddef5

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ RUN \
3737
git clone https://github.com/docker/compose.git && \
3838
cd /compose && \
3939
git checkout "${COMPOSE_VERSION}" && \
40-
pip3 install virtualenv==16.2.0 && \
41-
pip3 install tox==2.9.1 && \
40+
pip3 install -U pip && \
41+
pip install -U --ignore-installed virtualenv==20.0.30 && \
42+
pip install -U --ignore-installed tox==3.19.0 && \
4243
PY_ARG=$(printf "$(python3 -V)" | awk '{print $2}' | awk 'BEGIN{FS=OFS="."} NF--' | sed 's|\.||g' | sed 's|^|py|g') && \
4344
sed -i "s|envlist = .*|envlist = ${PY_ARG},pre-commit|g" tox.ini && \
4445
tox --notest && \

Dockerfile.aarch64

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ RUN \
3737
git clone https://github.com/docker/compose.git && \
3838
cd /compose && \
3939
git checkout "${COMPOSE_VERSION}" && \
40-
pip3 install virtualenv==16.2.0 && \
41-
pip3 install tox==2.9.1 && \
40+
pip3 install -U pip && \
41+
pip install -U --ignore-installed virtualenv==20.0.30 && \
42+
pip install -U --ignore-installed tox==3.19.0 && \
4243
PY_ARG=$(printf "$(python3 -V)" | awk '{print $2}' | awk 'BEGIN{FS=OFS="."} NF--' | sed 's|\.||g' | sed 's|^|py|g') && \
4344
sed -i "s|envlist = .*|envlist = ${PY_ARG},pre-commit|g" tox.ini && \
4445
tox --notest && \

Dockerfile.armhf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ RUN \
3737
git clone https://github.com/docker/compose.git && \
3838
cd /compose && \
3939
git checkout "${COMPOSE_VERSION}" && \
40-
pip3 install virtualenv==16.2.0 && \
41-
pip3 install tox==2.9.1 && \
40+
pip3 install -U pip && \
41+
pip install -U --ignore-installed virtualenv==20.0.30 && \
42+
pip install -U --ignore-installed tox==3.19.0 && \
4243
PY_ARG=$(printf "$(python3 -V)" | awk '{print $2}' | awk 'BEGIN{FS=OFS="."} NF--' | sed 's|\.||g' | sed 's|^|py|g') && \
4344
sed -i "s|envlist = .*|envlist = ${PY_ARG},pre-commit|g" tox.ini && \
4445
tox --notest && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
127127

128128
## Versions
129129

130+
* **12.09.20:** - Bump tox and virtualenv versions.
130131
* **06.07.20:** - Publish docker-compose and docker-cli binaries in Github releases.
131132
* **01.07.20:** - Release alpine based images at `alpine` tag.
132133
* **04.06.20:** - Bump docker-cli to 19.03.8, auto-detect python3 version.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ full_custom_readme: |
133133
134134
## Versions
135135
136+
* **12.09.20:** - Bump tox and virtualenv versions.
136137
* **06.07.20:** - Publish docker-compose and docker-cli binaries in Github releases.
137138
* **01.07.20:** - Release alpine based images at `alpine` tag.
138139
* **04.06.20:** - Bump docker-cli to 19.03.8, auto-detect python3 version.

run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
# You can add additional volumes (or any docker run options) using
1414
# the $COMPOSE_OPTIONS environment variable.
1515
#
16+
# You can set a specific image tag from Docker Hub, such as "1.26.2-ls9", or "alpine"
17+
# using the $DOCKER_COMPOSE_IMAGE_TAG environment variable (defaults to "latest")
18+
#
1619

1720

1821
set -e
1922

20-
VERSION="latest" # can be set to a specific version tag from docker hub, such as "1.25.5", or "alpine"
21-
IMAGE="linuxserver/docker-compose:$VERSION"
22-
23+
# set image tag to latest if not globally set
24+
DOCKER_COMPOSE_IMAGE_TAG="${DOCKER_COMPOSE_IMAGE_TAG:-latest}"
25+
IMAGE="linuxserver/docker-compose:$DOCKER_COMPOSE_IMAGE_TAG"
2326

2427
# Setup options for connecting to docker host
2528
if [ -z "$DOCKER_HOST" ]; then

0 commit comments

Comments
 (0)