docker-template 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a185a9ae1813e75fe6700ad37d1afddddb7abb9d
4
- data.tar.gz: 23469cd0a8a12e6a574f2fc31bd796205f94e895
3
+ metadata.gz: 5060791217036cf86cc67c35c8ab1e704b3f267c
4
+ data.tar.gz: b938025a0acb248c6d4d61af6fac0fbadf93d09d
5
5
  SHA512:
6
- metadata.gz: 974e06e36e2177a5372a11e258d24a21c538265d1aeca88387ad1d5a9c41fec46d7272eedf29805a8dbafe6abaa3e97c15fbbd224efaffebe611a01e7866557d
7
- data.tar.gz: e9ef4a69ba9423ac09f089d45160c2969797016ccbd2cf0e14e15df8dde0b96f472ce5828ef89783e9b5b12b26f5d2f0f2e7d0b471d7a21fa6db43144c91827e
6
+ metadata.gz: 608e74b78188be05ad57b1c700320e8457e07544baa95a357c7c6cc48cb829e0d62ca328f3b964e671307f982d9cb2c73dca40ef1ad005761fc50b3f0d007785
7
+ data.tar.gz: 871506fd6725da0fc6d82506201540dda1fdfe6dcd9f8ff254b3a92bdcfe297fffd710089dea55cbd9096615e02d38236d30183c9fabeb7c8c1ad8ccbcd7e414
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Docker
6
6
  module Template
7
- VERSION = "0.14.0"
7
+ VERSION = "0.15.0"
8
8
  end
9
9
  end
@@ -9,7 +9,9 @@ MIRROR_HOST="<%= @meta.mirror_host %>"
9
9
  [ "$MIRROR_HOST" ] || MIRROR_HOST="mirror.envygeeks.io"
10
10
  MIRRORS="\nhttp://$MIRROR_HOST/alpine/<%= @meta.release =~ /^[\d,\.]+$/ ? "v" : "" %><%= @meta.release %>/main"
11
11
  MIRRORS=$MIRRORS"\n@community http://$MIRROR_HOST/alpine/<%= @meta.release =~ /^[\d,\.]+$/ ? "v" : "" %><%= @meta.release %>/community"
12
+ MIRRORS=$MIRRORS"\n@communityEdge http://$MIRROR_HOST/alpine/edge/community"
12
13
  MIRRORS=$MIRRORS"\n@testing http://$MIRROR_HOST/alpine/edge/testing"
14
+ MIRRORS=$MIRRORS"\n@edge http://$MIRROR_HOST/alpine/edge/main"
13
15
  RELEASE_URL="http://$MIRROR_HOST/alpine/<%= @meta.release \
14
16
  =~ /^[\d,\.]+$/ ? "v" : "" %><%= @meta.release %>/main"
15
17
 
@@ -38,10 +40,12 @@ cp -R $COPY_DIR/* $ROOTFS 2> /dev/null || true
38
40
 
39
41
  # --
40
42
 
41
- cp /etc/hosts $ROOTFS/etc/hosts
42
43
  cp /etc/resolv.conf $ROOTFS/etc/resolv.conf
43
44
  printf "$MIRRORS" > $ROOTFS/etc/apk/repositories
44
- apk --update --root=$ROOTFS add <%= @meta.packages %>
45
+ cp /etc/hosts $ROOTFS/etc/hosts
46
+
47
+ apk --root=$ROOTFS update
48
+ apk --root=$ROOTFS add <%= @meta.packages %>
45
49
  apk del --root=$ROOTFS <%= @meta.package_cleanup %>
46
50
  apk del --root=$ROOTFS <%= @meta.package_deep_cleanup %>
47
51
  mv $ROOTFS/var/run/* $ROOTFS/run 2> /dev/null || true
@@ -56,7 +60,8 @@ ln -sf /run $ROOTFS/var/run
56
60
  mkdir -p /usr/src
57
61
  cd /usr/src
58
62
 
59
- apk --update add ca-certificates git
63
+ apk update
64
+ apk add ca-certificates git
60
65
  git clone --verbose https://github.com/envygeeks/docker-helper.git
61
66
  cp -R docker-helper/src/* $ROOTFS/
62
67
  <% end %>
@@ -11,7 +11,8 @@ TMP=$(mktemp -d)
11
11
  # --
12
12
 
13
13
  cd $TMP
14
- apk --update add wget gnupg ca-certificates \
14
+ apk update
15
+ apk add wget gnupg ca-certificates \
15
16
  gawk sed
16
17
 
17
18
  # --
@@ -86,7 +87,7 @@ chroot "$ROOTFS" sh -ec "{
86
87
  mkdir -p /usr/src
87
88
  cd /usr/src
88
89
 
89
- apk --update add ca-certificates git
90
+ apk add ca-certificates git
90
91
  git clone --verbose https://github.com/envygeeks/docker-helper.git
91
92
  cp -R docker-helper/src/* $ROOTFS/
92
93
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell