|
| 1 | +FROM mcr.microsoft.com/devcontainers/base:alpine-3.20 |
| 2 | + |
| 3 | +# Setzen der Umgebungsvariablen |
| 4 | +ENV CLOUD_SDK_VERSION=464.0.0 |
| 5 | +ENV FIRELY_TERMINAL_VERSION=3.3.2 |
| 6 | +ENV JAVA_VALIDATOR_VERSION=6.3.25 |
| 7 | + |
| 8 | +# Google Cloud SDK herunterladen und installieren |
| 9 | +RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \ |
| 10 | + tar -xf google-cloud-cli-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \ |
| 11 | + ./google-cloud-sdk/install.sh --quiet && \ |
| 12 | + rm google-cloud-cli-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz |
| 13 | + |
| 14 | +RUN apk add --no-cache \ |
| 15 | + # .NET SDK for Firely Terminal |
| 16 | + dotnet8-sdk \ |
| 17 | + # icu-libs \ |
| 18 | + # Node.js and NPM for FSH Sushi |
| 19 | + nodejs npm \ |
| 20 | + # Java (OpenJDK) and Jeykll for IG Publisher |
| 21 | + openjdk17 jekyll \ |
| 22 | + # Additional dependencies |
| 23 | + # jq findutils curl ca-certificates \ |
| 24 | + # PlantUML |
| 25 | + graphviz fontconfig |
| 26 | + |
| 27 | +# Setup for FHIR Validator |
| 28 | +RUN mkdir -p /home/vscode/.fhir/validators/ |
| 29 | +RUN wget -q https://github.com/hapifhir/org.hl7.fhir.core/releases/download/$JAVA_VALIDATOR_VERSION/validator_cli.jar -O /home/vscode/.fhir/validators/validator_cli.jar |
| 30 | + |
| 31 | +# Switch to the vscode user |
| 32 | +USER vscode |
| 33 | + |
| 34 | +# Add gcloud to user path |
| 35 | +ENV PATH="/google-cloud-sdk/bin:${PATH}" |
| 36 | + |
| 37 | +# Install UV for Python environments |
| 38 | +RUN curl -LsSf https://astral.sh/uv/install.sh | sh |
| 39 | +ENV PATH="/home/vscode/.local/bin:${PATH}" |
| 40 | + |
| 41 | +RUN uv tool install git+https://github.com/gematik/fhir-scripts.git |
| 42 | + |
| 43 | +RUN fhirscripts install \ |
| 44 | + --sushi \ |
| 45 | + --firely-terminal |
| 46 | + |
| 47 | +# Add Firely Terminal to user path |
| 48 | +ENV PATH="/home/vscode/.dotnet/tools:${PATH}" |
0 commit comments