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

Upgrade Dockerfile to use ubuntu 20.04 image #3023

Closed
asubiotto opened this issue Apr 26, 2021 · 1 comment
Closed

Upgrade Dockerfile to use ubuntu 20.04 image #3023

asubiotto opened this issue Apr 26, 2021 · 1 comment

Comments

@asubiotto
Copy link

Running the Dockerfile for the first time on e58711e, I encountered some build errors:

#20 3.295 E: Package 'google-chrome-stable' has no installation candidate
#20 3.295 E: Package 'docker-ce' has no installation candidate
#20 3.295 E: Version '1.16.1-1~bionic' for 'nginx' was not found

I still have to investigate whether we can fix finding these packages on 18.04, but the recommendation from slack was to upgrade the Dockerfile to use ubuntu 20.04, the latest LTS version.

My WIP to do this is here: https://github.com/asubiotto/dark/commit/d510feb878a52e5c0fb46ae27636add81e31c630

Unfortunately, the current blocker is that the pg_createcluster fails with:

#29 2.701 running bootstrap script ... FATAL:  semop(id=25) failed: Function not implemented

Since I am running an Apple M1 laptop, my best guess is that this is a qemu virtualization bug running amd64 images on an m1 host. semop calls semtimedop which is not implemented in this case (https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1895456). There are also some known issues run amd64 images on apple silicon: docker/for-mac#5321.

I am not familiar enough with docker/qemu to say what the best way forward here is, but it looks like the general workaround is to use arm64 images. However, some packages dark relies on like google chrome don't seem to be available for arm64 and it seems like a pretty big change.

@pbiggar
Copy link
Member

pbiggar commented Jun 25, 2021

The dockerfile is now updated to 20.04. There might be some issues on arm64 still, but we can see them when they come up.

@pbiggar pbiggar closed this as completed Jun 25, 2021
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