postwork-io / deadline_docker

12 stars 9 forks source link

ERROR: Service 'deadline-rcs' failed to build #2

Open eLem3ntx opened 1 year ago

eLem3ntx commented 1 year ago

modified the docker-compose to build with synology docker (just the volumes) - but when building the following ERROR occurs: ERROR: Service 'deadline-rcs' failed to build

complete error after step 23:

Step 23/44 : RUN python ./SSLGeneration/ssl_gen.py --ca --cert-org ${CERT_ORG} --cert-ou ${CERT_OU} --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --server --cert-name ${DB_HOST} --alt-name localhost --alt-name 127.0.0.1 --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --client --cert-name deadline-client --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --pfx --cert-name deadline-client --keys-dir ~/keys --passphrase ${DB_CERT_PASS} &&    cat ~/keys/${DB_HOST}.crt ~/keys/${DB_HOST}.key > ~/keys/mongodb.pem
 ---> Running in 066a46eafe78
usage: ssl_gen.py [-h]
                  [--ca | --intermediate-ca | --server | --client | --pfx | --revoke | --renew-crl]
                  [--cert-name CERT_NAME] [--cert-org CERT_ORG]
                  [--cert-ou CERT_OU] [--alt-name ALT_NAME]
                  [--keys-dir KEYS_DIR] [--passphrase PASSPHRASE]
ssl_gen.py: error: argument --cert-org: expected one argument
The command '/bin/sh -c python ./SSLGeneration/ssl_gen.py --ca --cert-org ${CERT_ORG} --cert-ou ${CERT_OU} --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --server --cert-name ${DB_HOST} --alt-name localhost --alt-name 127.0.0.1 --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --client --cert-name deadline-client --keys-dir ~/keys &&    python ./SSLGeneration/ssl_gen.py --pfx --cert-name deadline-client --keys-dir ~/keys --passphrase ${DB_CERT_PASS} &&    cat ~/keys/${DB_HOST}.crt ~/keys/${DB_HOST}.key > ~/keys/mongodb.pem' returned a non-zero code: 2
ERROR: Service 'deadline-rcs' failed to build
luisfos commented 1 year ago

Hi I received the same error on a synology NAS. manually updating docker-compose to v2 solved this part

eLem3ntx commented 1 year ago

Oh nice - Thanks! Do you have a good tutorial or workflow sheet how to update?

luisfos commented 1 year ago

you have to replace the docker-compose in /var/packages/Docker/target/usr/bin/ see docker compose manual install docs https://docs.docker.com/compose/install/linux/ there are tutorials out there have a google