Skip to content

Commit

Permalink
fix(devel): add x11 forwarding support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed May 29, 2024
1 parent 19b2214 commit e68de7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.devel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ RUN true \
texlive-full \
# Backup SSH Configurations
&& cp -r /etc/ssh /etc/.ssh \
# Grant X11 Forwarding
&& echo 'X11Forwarding yes' >/etc/ssh/sshd_config.d/10-x11-forwarding.conf \
&& echo 'X11UseLocalhost no' >>/etc/ssh/sshd_config.d/10-x11-forwarding.conf \
# Grant user-level dockerd access
&& gpasswd -a user docker \
# Update ldconfig
Expand Down
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ set dotenv-load

# Configure environment variables
export ALPINE_VERSION := env_var_or_default('ALPINE_VERSION', '3.18')
export DESKTOP_DIST := env_var_or_default('DESKTOP_DIST', 'ubuntu')
export DESKTOP_VERSION := env_var_or_default('DESKTOP_VERSION', 'latest')
export OCI_BUILD_LOG_DIR := env_var_or_default('OCI_BUILD_LOG_DIR', './logs/')
export OCI_IMAGE := env_var_or_default('OCI_IMAGE', 'quay.io/ulagbulag/openark')
export OCI_IMAGE_VERSION := env_var_or_default('OCI_IMAGE_VERSION', 'latest')
Expand Down Expand Up @@ -58,6 +60,8 @@ oci-build-devel *ARGS:
--file './Dockerfile.devel' \
--tag "${OCI_IMAGE}:${OCI_IMAGE_VERSION}-devel" \
--build-arg ALPINE_VERSION="${ALPINE_VERSION}" \
--build-arg DESKTOP_DIST="${DESKTOP_DIST}" \
--build-arg DESKTOP_VERSION="${DESKTOP_VERSION}" \
--platform "linux/amd64" \
--pull \
{{ ARGS }} \
Expand Down

0 comments on commit e68de7b

Please sign in to comment.