Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on macOS or Debian #7

Open
OptimusKoala opened this issue Feb 13, 2024 · 5 comments
Open

Can't build on macOS or Debian #7

OptimusKoala opened this issue Feb 13, 2024 · 5 comments

Comments

@OptimusKoala
Copy link

OptimusKoala commented Feb 13, 2024

Hi,

I have this error when I build the image from macOS or Debian:

`> [19/39] RUN sed -i "s/uname -a | grep/awk -F= '/^NAME/{print $2}' /etc/os-release | grep/" /tmp/apachesetup.sh ; sed -i "s/uname -a | grep/awk -F= '/^NAME/{print $2}' /etc/os-release | grep/" /tmp/rssetup.sh ; sed -i "s/systemctl restart apache2.service/service apache2 restart/" /tmp/apachesetup.sh ; sed -i "s/systemctl status apache2.service --no-pager/service apache2 status/" /tmp/apachesetup.sh:
0.332 sed: can't read /tmp/apachesetup.sh: No such file or directory
0.350 sed: can't read /tmp/rssetup.sh: No such file or directory
0.369 sed: can't read /tmp/apachesetup.sh: No such file or directory
0.387 sed: can't read /tmp/apachesetup.sh: No such file or directory

78 | # as init system (PID 1)" bugs in the apachesetup.sh and rssetup.sh
79 | >>> RUN sed -i "s/uname -a | grep/awk -F= '/^NAME/{print $2}' /etc/os-release | grep/" /tmp/apachesetup.sh ;
80 | >>> sed -i "s/uname -a | grep/awk -F= '/^NAME/{print $2}' /etc/os-release | grep/" /tmp/rssetup.sh ;
81 | >>> sed -i "s/systemctl restart apache2.service/service apache2 restart/" /tmp/apachesetup.sh ;
82 | >>> sed -i "s/systemctl status apache2.service --no-pager/service apache2 status/" /tmp/apachesetup.sh
83 |

ERROR: failed to solve: process "/bin/sh -c sed -i "s/uname -a | grep/awk -F= '\/^NAME\/\{print \$2\}' \/etc\/os-release | grep/" /tmp/apachesetup.sh ; sed -i "s/uname -a | grep/awk -F= '\/^NAME\/\{print \$2\}' \/etc\/os-release | grep/" /tmp/rssetup.sh ; sed -i "s/systemctl restart apache2.service/service apache2 restart/" /tmp/apachesetup.sh ; sed -i "s/systemctl status apache2.service --no-pager/service apache2 status/" /tmp/apachesetup.sh" did not complete successfully: exit code: 2`

@lmbelo
Copy link
Member

lmbelo commented Feb 13, 2024

Is your Mac equipped with an ARM processor?

@OptimusKoala
Copy link
Author

Yes, but I've made it for amd64 and I also tried on a debian server. Same error.

@lmbelo
Copy link
Member

lmbelo commented Feb 13, 2024

Are you virtualizing the Debian server in your ARM Mac? If you're using parallels, try to install the x64 Ubuntu image they provide, it works fine, but don't forget to set the x64 arch in your scripts.

@OptimusKoala
Copy link
Author

I did not virtualized, I tried on a debian server, just to ensure that it's wasn't about the macOS.

It's seems that two files are missing -> /tmp/apachesetup.sh and /tmp/rssetup.sh
I can't find them or find how to create them.

@lmbelo
Copy link
Member

lmbelo commented Feb 13, 2024

Is it possible for you to test on Ubuntu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants