Skip to content

Commit

Permalink
Merge pull request #107 from DieterReuter/downgrade-docker-compose
Browse files Browse the repository at this point in the history
Downgrade Docker Compose to the latest easy installable version 1.23.1
  • Loading branch information
DieterReuter committed Jul 14, 2019
2 parents 909cc5a + eaf5358 commit d59648a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -12,7 +12,7 @@ ENV FETCH_MISSING_ARTIFACTS=true \
RAW_IMAGE_ARTIFACT=rpi-raw.img.zip \
DOCKER_ENGINE_VERSION="5:18.09.7~3-0~debian-stretch" \
CONTAINERD_IO_VERSION="1.2.6-3" \
DOCKER_COMPOSE_VERSION="1.24.1" \
DOCKER_COMPOSE_VERSION="1.23.1" \
DOCKER_MACHINE_VERSION="0.16.1" \
KERNEL_VERSION="4.19.58" \
ROOTFS_TAR_CHECKSUM="4437ac3ab8278a4a3994aa9aa36f0f00bc409f80ebdffef23a141dfc0286ecb0" \
Expand Down
23 changes: 8 additions & 15 deletions builder/chroot-script.sh
Expand Up @@ -256,21 +256,14 @@ chmod +x /usr/local/bin/docker-machine
# install bash completion for Docker Machine
curl -sSL "https://raw.githubusercontent.com/docker/machine/v${DOCKER_MACHINE_VERSION}/contrib/completion/bash/docker-machine.bash" -o /etc/bash_completion.d/docker-machine

#---DISABLE DOCKER COMPOSE---
# # install Docker Compose via pip
# apt-get install -y \
# build-essential libffi-dev libssl-dev python python-dev
# curl -sSL https://bootstrap.pypa.io/get-pip.py | python
# pip install docker-compose=="${DOCKER_COMPOSE_VERSION}"
# apt-get purge -y \
# build-essential libffi-dev libssl-dev python-dev
# apt-get autoremove -y --purge
# apt-get autoclean
# apt-get clean
#
# # install bash completion for Docker Compose
# curl -sSL "https://raw.githubusercontent.com/docker/compose/${DOCKER_COMPOSE_VERSION}/contrib/completion/bash/docker-compose" -o /etc/bash_completion.d/docker-compose
#---DISABLE DOCKER COMPOSE---
# install Docker Compose via pip
apt-get install -y \
python
curl -sSL https://bootstrap.pypa.io/get-pip.py | python
pip install docker-compose=="${DOCKER_COMPOSE_VERSION}"

# install bash completion for Docker Compose
curl -sSL "https://raw.githubusercontent.com/docker/compose/${DOCKER_COMPOSE_VERSION}/contrib/completion/bash/docker-compose" -o /etc/bash_completion.d/docker-compose

echo "Installing rpi-serial-console script"
wget -q https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O usr/local/bin/rpi-serial-console
Expand Down
Expand Up @@ -7,7 +7,7 @@
end

describe command('docker-compose --version') do
its(:stdout) { should match /1.24.1/m }
its(:stdout) { should match /1.23.1/m }
its(:exit_status) { should eq 0 }
end

Expand Down

0 comments on commit d59648a

Please sign in to comment.