Skip to content

Commit

Permalink
Merge pull request #69 from pondersource/use-buildkit
Browse files Browse the repository at this point in the history
GitHub Codespaces is now OK with Docker build kit
  • Loading branch information
MahdiBaghbani authored Jan 9, 2024
2 parents fe5a2b8 + 46e3240 commit fb75cb0
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 19 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

Docker images we use in development.

# Note
If you do build on Codespaces, make sure you set `DOCKER_BUILDKIT=0` .

# EFSS versions
## Nextcloud version

Expand Down
6 changes: 4 additions & 2 deletions docker/build/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/sciencemesh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/solid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/sunet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/surf-rd-sram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/surf-token-based-access.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
6 changes: 4 additions & 2 deletions docker/build/surf-trashbin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

set -e

# @michielbdejong avoid docker buildkit
export DOCKER_BUILDKIT=0
# use docker buildkit. you can disable buildkit by providing 0 as first argument.
USE_BUILDKIT=${1:-"1"}

export DOCKER_BUILDKIT="${USE_BUILDKIT}"

# find this scripts location.
SOURCE=${BASH_SOURCE[0]}
Expand Down
4 changes: 2 additions & 2 deletions docker/delete-all-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
set -e

# delete all containers including its volumes.
docker rm -vf $(docker ps -aq) || true
docker rm -vf $(docker ps -aq) >/dev/null 2>&1 || true

# delete all images.
docker rmi -f $(docker images -aq) || true
docker rmi -f $(docker images -aq) >/dev/null 2>&1 || true

docker system prune --force
docker volume prune --force

0 comments on commit fb75cb0

Please sign in to comment.