File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ init-remote:
85
85
echo " $$ ACTIVATE_TEMPLATE" > ./bin/activate
86
86
echo " $$ RSH_TEMPLATE" > ./bin/rsh
87
87
chmod a+x ./bin/rsh
88
+ ${MAKE} init-remote-${DEVMODE}
88
89
${MAKE} sync-once bin/sync
89
90
${RSH} sh -ce " echo local > .devmode"
90
91
${RSH} make init-env
@@ -94,6 +95,25 @@ init-remote:
94
95
.PHONY : init-remote
95
96
96
97
98
+ init-remote-local :
99
+ .PHONY : init-remote-local
100
+
101
+ init-remote-docker :
102
+ HOST_CERTS=/tmp/host_certificates.pem; \
103
+ case " ` uname -s` " in \
104
+ Linux) cp /etc/ssl/certs/ca-certificates.crt $$ HOST_CERTS;; \
105
+ Darwin) security find-certificate -a -p /Library/Keychains/System.keychain > $$ HOST_CERTS;; \
106
+ * ) touch $$ HOST_CERTS;; \
107
+ esac ; \
108
+ docker cp $$ HOST_CERTS ` docker-compose ps -q develop` :/tmp/host_certificates.pem
109
+ ${RSH} csplit --quiet --prefix=/usr/local/share/ca-certificates/host_certificate_ --suffix=' %02d.crt' --elide-empty-files /tmp/host_certificates.pem ' /-----BEGIN CERTIFICATE-----/' ' {*}'
110
+ ${RSH} update-ca-certificates
111
+ .PHONY : init-remote-docker
112
+
113
+ init-remote-kube :
114
+ .PHONY : init-remote-kube
115
+
116
+
97
117
# Create the environment and install development tools.
98
118
init-env :
99
119
python3 -m venv ${CURDIR}
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ services:
39
39
- npm_config_cache=/cache/npm
40
40
- YARN_CACHE_FOLDER=/cache/yarn
41
41
- PIP_CACHE_DIR=/cache/pip
42
+ - REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
43
+ - NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
42
44
cap_add :
43
45
- NET_ADMIN
44
46
sysctls :
You can’t perform that action at this time.
0 commit comments