-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add condition for temp docker build (#18)
* CI: add condition for temp docker build * Cache docker layers * Download and install swiftlang from https://swiftlang.xyz/ * minor change to trigger build/test cache The docker build was cached after the previous push * Use v4 not 3 of cache action * Minor improvements to docker-compose * Use 'extends' to combine x11 section * Update docs * Added ref to issue for wayland support. --------- Co-authored-by: KaruroChori <[email protected]>
- Loading branch information
1 parent
c264643
commit 9d64083
Showing
9 changed files
with
122 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
HOSTUID=1000 | ||
HOSTGID=1000 | ||
IMAGE="ghcr.io/karurochori/vs-fltk:build-env" | ||
ENTRYPOINT:$PWD/docker/default-entry.sh | ||
SOURCE_ROOT=$PWD | ||
# Add your numeric user and group id | ||
HOSTUID= | ||
HOSTGID= | ||
|
||
# The directory in the container where the source root will be mounted | ||
WORKSPACE="/vs-workspace" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
services: | ||
dev: | ||
image: $IMAGE | ||
container_name: vs-fltk-env | ||
entrypoint: $ENTRYPOINT | ||
volumes: | ||
- $SOURCE_ROOT:/workspace | ||
- $ENTRYPOINT:$ENTRYPOINT | ||
- ${PWD}/docker/main_entry.sh:/docker/main_entry.sh | ||
image: "${IMAGE:-ghcr.io/karurochori/vs-fltk:build-env}" | ||
container_name: "${VS_NAME:-vs-fltk-env}" | ||
entrypoint: "${ENTRYPOINT:-/entry-default.sh}" | ||
|
||
# Only variables used within the container should be here | ||
environment: | ||
HOSTUID: $HOSTUID | ||
HOSTGID: $HOSTGID | ||
ENTRYPOINT: $ENTRYPOINT | ||
working_dir: /workspace | ||
WORKSPACE: $WORKSPACE | ||
|
||
volumes: | ||
- ${PWD}:${WORKSPACE} | ||
# Mount the entrypoint scripts inside the container | ||
- ${PWD}/docker/entry-build.sh:/entry-build.sh | ||
- ${PWD}/docker/entry-default.sh:/entry-default.sh | ||
working_dir: ${WORKSPACE} | ||
stdin_open: true # Allows interactive mode | ||
tty: true # Allocate a pseudo-TTY | ||
restart: "no" | ||
|
||
xgui: | ||
image: $IMAGE | ||
container_name: vs-fltk-gui | ||
entrypoint: $ENTRYPOINT | ||
volumes: | ||
- $SOURCE_ROOT:/workspace | ||
- $ENTRYPOINT:$ENTRYPOINT | ||
- ${PWD}/docker/main_entry.sh:/docker/main_entry.sh | ||
- /tmp/.X11-unix:/tmp/.X11-unix:rw | ||
x11-dev: | ||
extends: dev | ||
environment: | ||
HOSTUID: $HOSTUID | ||
HOSTGID: $HOSTGID | ||
ENTRYPOINT: $ENTRYPOINT | ||
DISPLAY: $DISPLAY | ||
DISPLAY: ${DISPLAY} | ||
QT_X11_NO_MITSHM: 1 | ||
working_dir: /workspace | ||
stdin_open: true # Allows interactive mode | ||
tty: true # Allocate a pseudo-TTY | ||
restart: "no" | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix:rw | ||
|
||
# TODO: Someone using wayland and knowledge of docker is best suited | ||
# to complete this section | ||
# Ref issue: https://github.com/KaruroChori/vs-fltk/issues/42 | ||
# | ||
# wayland-dev: | ||
# extends: dev | ||
# environment: | ||
# WAYLAND_DISPLAY: ${WAYLAND_DISPLAY} | ||
# volumes: | ||
# - /run/user/${HOSTID}/wayland:/run/user/${HOSTID}/wayland" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
$WORKSPACE/docker/entry-common.sh | ||
|
||
su builder -c "cd $WORKSPACE && . ~/.profile && bash" |
This file was deleted.
Oops, something went wrong.