Open dehidehidehi opened 1 year ago
Hi, thank you, a first quick response is that I have this repo on hold, because I want to refactor it using this template: https://github.com/HiveMinds/Bash-Project-Template and run my self-hosted GitLab CI on it over here: https://github.com/TruCol/Self-host-GitLab-CI-for-GitHub. (And my first guess is that I the dockerfile was a try-out, (which I acknowledge should not be in main).
But I'll briefly take a look to see if I can resolve the issue you mentioned in the next 15 minutes.
Thank you for sharing the issue with detailed log. I fixed two issues with the code, and some are still open.
bash
.There were quite a few _local
words, which the docker did not recognize, I assume this was valid shell syntax but not valid bash syntax. I changed them back to local
.
The following output still throws some errors upon running docker build .
. I expect those are related to the installation being ran inside a docker instead of inside a ubuntu PC:
Sync successful. 1 changes uploaded.
taskd_data=/var/taskd
linux_username=root
linux_group=root
touch: cannot touch 'src/taskd.service': No such file or directory
sed: can't read src/taskd.service: No such file or directory
src/D_configure_taskserver.sh: line 177: src/taskd.service: No such file or directory
touch: cannot touch 'src/taskd.service': No such file or directory
sed: can't read src/taskd.service: No such file or directory
src/D_configure_taskserver.sh: line 177: src/taskd.service: No such file or directory
touch: cannot touch 'src/taskd.service': No such file or directory
sed: can't read src/taskd.service: No such file or directory
src/D_configure_taskserver.sh: line 177: src/taskd.service: No such file or directory
touch: cannot touch 'src/taskd.service': No such file or directory
sed: can't read src/taskd.service: No such file or directory
src/D_configure_taskserver.sh: line 177: src/taskd.service: No such file or directory cp: cannot stat 'src/taskd.service': No such file or directory output= sudo: systemctl: command not found output= sudo: systemctl: command not found output= src/D_configure_taskserver.sh: line 219: systemctl: command not found output= sudo: systemctl: command not found output= 40771AC3927F0000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(/home/root/.task/ca.cert.pem, r) 40771AC3927F0000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75: 40771AC3927F0000:error:05880002:x509 certificate routines:X509_load_cert_crl_file_ex:system lib:../crypto/x509/by_file.c:228: Cannot open /home/root/.task/ca.cert.pem for reading Cannot open /home/root/.task/first.cert.pem for reading Cannot open /home/root/.task/ca.cert.pem for reading Cannot open /home/root/.task/first.cert.pem for reading Note that no verification profile was selected. In the future the medium profile will be enabled by default. Use --verify-profile low to apply the default verification of NORMAL priority string. Loaded CAs (1 available) Subject: CN=278d30ff6b62,O=Göteborg Bit Factory Issuer: CN=278d30ff6b62 CA,O=Göteborg Bit Factory,L=Göteborg,ST=Västra Götaland,C=SE Checked against: CN=278d30ff6b62 CA,O=Göteborg Bit Factory,L=Göteborg,ST=Västra Götaland,C=SE Signature algorithm: RSA-SHA256 Output: Verified. The certificate is trusted.
Chain verification output: Verified. The certificate is trusted.
Note that no verification profile was selected. In the future the medium profile will be enabled by default. Use --verify-profile low to apply the default verification of NORMAL priority string. Loaded CAs (1 available) Subject: CN=278d30ff6b62,O=Göteborg Bit Factory Issuer: CN=278d30ff6b62 CA,O=Göteborg Bit Factory,L=Göteborg,ST=Västra Götaland,C=SE Checked against: CN=278d30ff6b62 CA,O=Göteborg Bit Factory,L=Göteborg,ST=Västra Götaland,C=SE Signature algorithm: RSA-SHA256 Output: Verified. The certificate is trusted.
Chain verification output: Verified. The certificate is trusted.
Subject: CN=278d30ff6b62,O=Göteborg Bit Factory
subject=O = G\C3\B6teborg Bit Factory, CN = 278d30ff6b62 src/run_taskserver_at_boot.sh: line 4: crontab: command not found src/run_taskserver_at_boot.sh: line 11: crontab: command not found Cron job successfully set up. src/run_taskserver_at_boot.sh: line 14: crontab: command not found Error, cronjob was not found. The command '/bin/sh -c chmod +x tw-install.sh && ./tw-install.sh' returned a non-zero code: 5
I do not intent on fixing these errors before I fix the CI. Feel free to send a pull request if you do manage to fix them!
Thanks! I'll give the fix a try and see if I find a solution.
Cheers
MR https://github.com/HiveMinds/tw-install/pull/104 Fixes Dockerfile build. It may also fix some CI bugs?
Thank you for your contribution! I have merged it, and mentioned some errors that I still received upon testing your solution.
Good afternoon,
Thank you for making this project.
Building the
Dockerfile
with thedocker build .
command fails with the given output: