Skip to content

Commit 5dea84a

Browse files
authored
Merge pull request #6700 from benz0li/update-dev-containers-5119352
Dev Containers: Update
2 parents 5119352 + f5cf9b5 commit 5dea84a

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.devcontainer/GHC.Dockerfile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ ARG HLS_VERSION
44
ARG STACK_VERSION
55

66
ARG HLS_GHC_VERSION=${HLS_VERSION:+$GHC_VERSION}
7-
ARG HLS_SFX=/${HLS_GHC_VERSION:-all}/hls:${HLS_VERSION:-none}
7+
ARG HLS_IMAGE_TAG=${HLS_VERSION:-none}-ghc${HLS_GHC_VERSION:-all}
88

99
ARG STACK_VERSION_OVERRIDE=${STACK_VERSION}
1010

11-
FROM ${BUILD_ON_IMAGE}:${GHC_VERSION} as files
11+
FROM ${BUILD_ON_IMAGE}:${GHC_VERSION} AS files
1212

1313
RUN mkdir /files
1414

@@ -21,11 +21,11 @@ RUN find /files -type d -exec chmod 755 {} \; \
2121
&& find /files -type f -exec chmod 644 {} \; \
2222
&& find /files/usr/local/bin -type f -exec chmod 755 {} \;
2323

24-
FROM glcr.b-data.ch/ghc/ghc-musl${HLS_SFX} as hls
24+
FROM quay.io/benz0li/hlssi:${HLS_IMAGE_TAG} AS hlssi
2525

26-
FROM glcr.b-data.ch/ndmitchell/hlsi:latest as hlsi
26+
FROM quay.io/benz0li/hlsi:latest AS hlsi
2727

28-
FROM docker.io/koalaman/shellcheck:stable as sci
28+
FROM docker.io/koalaman/shellcheck:stable AS sci
2929

3030
FROM ${BUILD_ON_IMAGE}:${GHC_VERSION}
3131

@@ -56,11 +56,14 @@ RUN sysArch="$(uname -m)" \
5656

5757
## Update environment
5858
ARG USE_ZSH_FOR_ROOT
59-
ARG SET_LANG
60-
ARG SET_TZ
59+
ARG LANG
60+
ARG TZ
6161

62-
ENV TZ=${SET_TZ:-$TZ} \
63-
LANG=${SET_LANG:-$LANG}
62+
ARG LANG_OVERRIDE=${LANG}
63+
ARG TZ_OVERRIDE=${TZ}
64+
65+
ENV LANG=${LANG_OVERRIDE:-$LANG} \
66+
TZ=${TZ_OVERRIDE:-$TZ}
6467

6568
## Change root's shell to ZSH
6669
RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
@@ -89,7 +92,7 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
8992

9093
## Copy binaries as late as possible to avoid cache busting
9194
## Install HLS
92-
COPY --from=hls /usr/local /usr/local
95+
COPY --from=hlssi /usr/local /usr/local
9396
## Install HLint
9497
COPY --from=hlsi /usr/local /usr/local
9598
## Install ShellCheck

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"GHC_VERSION": "9.8.4",
77
"HLS_VERSION": "2.10.0.0",
88
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
9-
"SET_LANG": "C.UTF-8",
10-
"SET_TZ": ""
9+
"LANG": "C.UTF-8",
10+
"TZ": ""
1111
}
1212
},
1313

.devcontainer/ghc-9.10.1/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"args": {
77
"GHC_VERSION": "9.10.1",
88
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
9-
"SET_LANG": "C.UTF-8",
10-
"SET_TZ": ""
9+
"LANG": "C.UTF-8",
10+
"TZ": ""
1111
}
1212
},
1313

.devcontainer/ghc-9.12.1/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"args": {
77
"GHC_VERSION": "9.12.1",
88
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
9-
"SET_LANG": "C.UTF-8",
10-
"SET_TZ": ""
9+
"LANG": "C.UTF-8",
10+
"TZ": ""
1111
}
1212
},
1313

0 commit comments

Comments
 (0)