File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ RUN apt-get update \
13
13
# copy go from golang
14
14
COPY --from=go /usr/local/go /usr/local/go
15
15
16
- ENV GOPATH=/opt/go PATH="/usr/local/go/bin:$PATH:/opt/go/bin"
16
+ ENV GOPATH=/opt/go \
17
+ PATH="/usr/local/go/bin:$PATH:/opt/go/bin" \
18
+ ACMESH_CONFIG_HOME=/data/.acme.sh/config \
19
+ ACMESH_HOME=/data/.acme.sh \
20
+ CERT_HOME=/data/.acme.sh/certs \
21
+ LE_CONFIG_HOME=/data/.acme.sh/config \
22
+ LE_WORKING_DIR=/data/.acme.sh
23
+
17
24
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \
18
25
&& chmod -R 777 "$GOPATH" \
19
26
&& echo "====> ${TARGETPLATFORM}: $(go version)"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
+ # Ensure env vars are set
4
+ if [ " $ACMESH_HOME " = " " ]; then
5
+ echo " Error: ACMESH_HOME is not set!"
6
+ exit 1
7
+ fi
8
+ if [ " $ACMESH_CONFIG_HOME " = " " ]; then
9
+ echo " Error: ACMESH_CONFIG_HOME is not set!"
10
+ exit 1
11
+ fi
12
+ if [ " $CERT_HOME " = " " ]; then
13
+ echo " Error: CERT_HOME is not set!"
14
+ exit 1
15
+ fi
16
+ if [ " $LE_CONFIG_HOME " = " " ]; then
17
+ echo " Error: LE_CONFIG_HOME is not set!"
18
+ exit 1
19
+ fi
20
+ if [ " $LE_WORKING_DIR " = " " ]; then
21
+ echo " Error: LE_WORKING_DIR is not set!"
22
+ exit 1
23
+ fi
24
+
3
25
# Ensure acme.sh dirs exist
4
26
mkdir -p " $ACMESH_HOME " " $ACMESH_CONFIG_HOME " " $CERT_HOME " " $LE_CONFIG_HOME " " $LE_WORKING_DIR "
5
27
You can’t perform that action at this time.
0 commit comments