-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'dev style' container works, except for reverse proxy setup, when avo…
…iding the globally configured DNS mapping for the xqiz.it domain, which resolves to 127.0.0.1 which causes some trouble to reroute stuff. For the use case 'docker run --pull' from the Internet, we would ideally like to have the release flow for the XDK finished, and it also has a higher priority, so temporarily pausing to do that.
- Loading branch information
Showing
16 changed files
with
203 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# This env file is not the same as the one in docker compose env_file sections. | ||
# This sets a default enviromnent from the build, e.g. with build args. | ||
# The others set environment variables to be used in the container. | ||
# | ||
COMPOSE_PROJECT_NAME=platform | ||
|
||
GITHUB_BRANCH_PLATFORM=${GITHUB_BRANCH:-platform-xtcplugin} | ||
|
||
PLATFORM_HOSTNAME=${PLATFORM_HOSTNAME:-xtc-platform.container.xqiz.it} | ||
PLATFORM_HOSTNAME_DEV=${PLATFORM_HOSTNAME_DEV:-xtc-platform.container-dev.xqiz.it} | ||
|
||
XTC_VERSION=0.4.3 |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,39 +1,21 @@ | ||
#FROM openjdk:21 | ||
FROM ubuntu:24.04 | ||
|
||
ARG DOCKER_BUILDKIT=$DOCKER_BUILDKIT | ||
ENV DOCKER_BUILD_KIT=$DOCKER_BUILDKIT | ||
FROM openjdk:21-jdk-slim-bookworm | ||
|
||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG XTC_USER=xtc | ||
ARG XTC_USER_HOME=/home/$XTC_USER | ||
ARG NPM_SAFE_VERSION='[email protected]' | ||
ARG GITHUB_BRANCH_XVM | ||
ARG GITHUB_BRANCH_PLATFORM | ||
|
||
ENV XTC_USER=$XTC_USER | ||
ENV XTC_USER_HOME=$XTC_USER_HOME | ||
ENV XQIZIT_HOME=$XTC_USER_HOME/xqiz.it | ||
ENV PLATFORM_HOME=$XQIZIT_HOME/platform | ||
ENV GITHUB_BRANCH_XVM=$GITHUB_BRANCH_XVM | ||
ENV GITHUB_BRANCH_PLATFORM=$GITHUB_BRANCH_PLATFORM | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
iputils-ping jq sudo wget curl git openjdk-21-jdk | ||
|
||
# Actually, we don't need a node installation. The Gradle plugin handles everything. | ||
#RUN curl --silent --location https://deb.nodesource.com/setup_21.x | sudo bash - | ||
#RUN apt-get -y --no-install-recommends install nodejs && npm -g install npm@${NPM_SAFE_VERSION} # && npm -g install yarn | ||
iputils-ping jq sudo wget curl git emacs-nox | ||
|
||
# Install dev tools. We should separate these out later. | ||
RUN apt-get install --no-install-recommends -y emacs-nox | ||
|
||
COPY *.sh /usr/local/bin | ||
COPY docker/scripts/*.sh /usr/local/bin | ||
|
||
RUN useradd -ms /bin/bash $XTC_USER \ | ||
&& passwd -d $XTC_USER \ | ||
|
@@ -44,11 +26,14 @@ RUN useradd -ms /bin/bash $XTC_USER \ | |
|
||
USER $XTC_USER | ||
|
||
# From README.md: Create xqiz.it subdirectory and config | ||
RUN mkdir -p $PLATFORM_HOME && mkdir -p $XQIZIT_HOME/config | ||
RUN mkdir -p $PLATFORM_HOME | ||
RUN mkdir -p $XTC_USER_HOME/lib/xdk | ||
|
||
# Copy the local build (todo could also bind mount it) | ||
COPY build/platform/* $XTC_USER_HOME/lib | ||
COPY build/xtc/xdk/lib/* $XTC_USER_HOME/lib/xdk | ||
|
||
# From README.md: Create port forwarding config. | ||
COPY config/port-forwarding.conf $PLATFORM_HOME | ||
# We should probably use a real XDK, | ||
|
||
# From README.md create: a self-signed certificate for the platform web server. For example: | ||
ARG PLATFORM_PASSWORD | ||
|
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,7 @@ | ||
FROM ghcr.io/xtclang/xdk-platform:latest as platform | ||
|
||
ARG GITHUB_BRANCH_PLATFORM | ||
ENV GITHUB_BRANCH_PLATFORM=$GITHUB_BRANCH_PLATFORM | ||
|
||
USER root | ||
|
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,3 @@ | ||
This directory contains prebuild self signed certificates for the XTC Platform hostname, and with the | ||
key store password 'password'. They should not be used in production, naturally. The dev container | ||
generates these values itself. |
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,5 @@ | ||
{ | ||
"hostName": "xtc-platform.container.xqiz.it", | ||
"httpPort": 8080, | ||
"httpsPort": 8090 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.