Browse Source

Support repository pinning: "edge", "edgecommunity" and "testing"

Mohammad Abdoli Rad 6 years ago
parent
commit
b9197a5760
8 changed files with 32 additions and 12 deletions
  1. 4 1
      3.5/Dockerfile
  2. 4 2
      3.5/openrc/Dockerfile
  3. 4 1
      3.6/Dockerfile
  4. 4 2
      3.6/openrc/Dockerfile
  5. 4 1
      3.7/Dockerfile
  6. 4 2
      3.7/openrc/Dockerfile
  7. 4 1
      3.8/Dockerfile
  8. 4 2
      3.8/openrc/Dockerfile

+ 4 - 1
3.5/Dockerfile

@@ -8,4 +8,7 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.5" \
         org.label-schema.license="MIT"
 
-RUN apk add --no-cache su-exec ca-certificates nano curl findutils
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache su-exec ca-certificates nano curl findutils

+ 4 - 2
3.5/openrc/Dockerfile

@@ -8,8 +8,10 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.5-openrc" \
         org.label-schema.license="MIT"
 
-RUN set -x \
-    && apk add --update --no-cache openrc su-exec ca-certificates nano curl findutils \
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache openrc su-exec ca-certificates nano curl findutils \
     # Disable getty's
     && sed -i 's/^\(tty\d\:\:\)/#\1/g' /etc/inittab \
     && sed -i \

+ 4 - 1
3.6/Dockerfile

@@ -8,4 +8,7 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.6" \
         org.label-schema.license="MIT"
 
-RUN apk add --no-cache su-exec ca-certificates nano curl findutils
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache su-exec ca-certificates nano curl findutils

+ 4 - 2
3.6/openrc/Dockerfile

@@ -8,8 +8,10 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.6-openrc" \
         org.label-schema.license="MIT"
 
-RUN set -x \
-    && apk add --update --no-cache openrc su-exec ca-certificates nano curl findutils \
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache openrc su-exec ca-certificates nano curl findutils \
     # Disable getty's
     && sed -i 's/^\(tty\d\:\:\)/#\1/g' /etc/inittab \
     && sed -i \

+ 4 - 1
3.7/Dockerfile

@@ -8,4 +8,7 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.7" \
         org.label-schema.license="MIT"
 
-RUN apk add --no-cache su-exec ca-certificates nano curl findutils
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache su-exec ca-certificates nano curl findutils

+ 4 - 2
3.7/openrc/Dockerfile

@@ -8,8 +8,10 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.7-openrc" \
         org.label-schema.license="MIT"
 
-RUN set -x \
-    && apk add --update --no-cache openrc su-exec ca-certificates nano curl findutils \
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache openrc su-exec ca-certificates nano curl findutils \
     # Disable getty's
     && sed -i 's/^\(tty\d\:\:\)/#\1/g' /etc/inittab \
     && sed -i \

+ 4 - 1
3.8/Dockerfile

@@ -8,4 +8,7 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.8" \
         org.label-schema.license="MIT"
 
-RUN apk add --no-cache su-exec ca-certificates nano curl findutils
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache su-exec ca-certificates nano curl findutils

+ 4 - 2
3.8/openrc/Dockerfile

@@ -8,8 +8,10 @@ LABEL org.label-schema.name="alpine" \
         org.label-schema.version="3.8-openrc" \
         org.label-schema.license="MIT"
 
-RUN set -x \
-    && apk add --update --no-cache openrc su-exec ca-certificates nano curl findutils \
+RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
+    && echo '@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
+    && echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
+    && apk add --no-cache openrc su-exec ca-certificates nano curl findutils \
     # Disable getty's
     && sed -i 's/^\(tty\d\:\:\)/#\1/g' /etc/inittab \
     && sed -i \