Skip to content
Extraits de code Groupes Projets
Valider 0bd08641 rédigé par Adrian Malacoda's avatar Adrian Malacoda
Parcourir les fichiers

cd to /data before running tool.

The tool has to be run in /data since it expects `discord-registration.yaml` to be in the working directory. However, the bridge itself can't be run from /data because it expects to be able to load the config schema from path relative to the working directory. The tools don't seem to need this schema and seem to run fine from /data.
parent c528abc2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -11,7 +11,7 @@ RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-de
&& cd / \
&& rm -rf /tmp/* \
&& apk del build-deps \
&& sh -c 'cd /build/tools; for TOOL in *.js; do LINK="/usr/bin/$(basename $TOOL .js)"; echo -e "#!/bin/sh\nnode /build/tools/$TOOL \$@" > $LINK; chmod +x $LINK; done'
&& sh -c 'cd /build/tools; for TOOL in *.js; do LINK="/usr/bin/$(basename $TOOL .js)"; echo -e "#!/bin/sh\ncd /data;\nnode /build/tools/$TOOL \$@" > $LINK; chmod +x $LINK; done'
ENV NODE_ENV=production
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter