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

[FeatureRequest]Enable https by default in /etc/apk/repositories #132

Closed
sebma opened this issue Jan 11, 2021 · 2 comments
Closed

[FeatureRequest]Enable https by default in /etc/apk/repositories #132

sebma opened this issue Jan 11, 2021 · 2 comments

Comments

@sebma
Copy link

sebma commented Jan 11, 2021

Hi,

Having problems reaching the default dl-cdn.alpinelinux.org repo on http, can you please replace the http protocol by https in your default /etc/apk/repositories file :

$ docker build -t sebm/alpine -f myDockerFiles/sebM_alpine dockerImages/
Sending build context to Docker daemon  3.631kB
Step 1/5 : ARG VERSION=latest
Step 2/5 : FROM alpine:$VERSION
 ---> 389fef711851
Step 3/5 : ARG VERSION
 ---> Running in eee573fdfb67
Removing intermediate container eee573fdfb67
 ---> 3aa19e78b3ad
Step 4/5 : RUN apk add bash
 ---> Running in f8947aea1655
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/main: network error (check Internet connection and firewall)
WARNING: Ignoring APKINDEX.2c4ac24e.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/community: network error (check Internet connection and firewall)
WARNING: Ignoring APKINDEX.40a3604f.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
  bash (missing):
    required by: world[bash]
The command '/bin/sh -c apk add bash' returned a non-zero code: 1
$ 
@ncopa
Copy link
Contributor

ncopa commented Jan 11, 2021

alpine 3.13 (hopefully released this week) will have https by default. (alpinelinux/aports@58f4b81)

I'm not sure its a good idea to change that for 3.12 at this point.

@ncopa ncopa closed this as completed Jan 11, 2021
@sebma
Copy link
Author

sebma commented Jan 11, 2021

@ncopa Great ! 👍

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