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

Fix make build-images when there is a tmp dir in the root dir or epinio #631

Merged
merged 1 commit into from Jul 20, 2021

Conversation

jimmykarily
Copy link
Contributor

The COPY line happens on / inside the container. If there is a
directory tmp at the root directory of epinio (from where the docker build command is called), it will overwrite the /tmp inside the
container messing up permissions and resulting in errors like:

Err:3 http://deb.debian.org/debian buster-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.lVTMwm for passing config to apt-key
Reading package lists...
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: Couldn't create temporary file /tmp/apt.conf.xehqje for passing config to apt-key
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster InRelease: Couldn't create temporary file /tmp/apt.conf.mfqdEg for passing config to apt-key
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Couldn't create temporary file /tmp/apt.conf.lVTMwm for passing config to apt-key
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.

Simply changing to some other directory fixes it.

…inio

The COPY line happens on `/` inside the container. If there is a
directory `tmp` at the root directory of epinio (from where the `docker
build` command is called), it will overwrite the `/tmp` inside the
container messing up permissions and resulting in errors like:

```
Err:3 http://deb.debian.org/debian buster-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.lVTMwm for passing config to apt-key
Reading package lists...
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: Couldn't create temporary file /tmp/apt.conf.xehqje for passing config to apt-key
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster InRelease: Couldn't create temporary file /tmp/apt.conf.mfqdEg for passing config to apt-key
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Couldn't create temporary file /tmp/apt.conf.lVTMwm for passing config to apt-key
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
```

Simply changing to some other directory fixes it.
@jimmykarily jimmykarily added this to Icebox in [Deprecated] Epinio via automation Jul 20, 2021
@jimmykarily jimmykarily moved this from Icebox to To Review in [Deprecated] Epinio Jul 20, 2021
@kkaempf
Copy link
Contributor

kkaempf commented Jul 20, 2021

Confirmed to fix my issue, thanks !

@kkaempf kkaempf self-requested a review July 20, 2021 15:07
@jimmykarily
Copy link
Contributor Author

The failed test passed locally. The temporary runners we created are not in the best shape I guess. We can merge this.

@jimmykarily jimmykarily merged commit d7cbb7b into main Jul 20, 2021
[Deprecated] Epinio automation moved this from To Review to Done Jul 20, 2021
@jimmykarily jimmykarily deleted the fix-build-images branch July 20, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants