File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,16 @@ Example:
44
44
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true
45
45
```
46
46
47
+ ## dpkg-packages
48
+ Optional directory holding ` .deb ` packages to be installed automatically
49
+ after ` apt-packages ` , ` apt-repositories ` and ` apt-debconf ` . Allows the
50
+ installation of custom packages inside the container.
51
+
52
+ Example:
53
+
54
+ ```
55
+ $ ls dpkg-packages/
56
+ your-package-0_0.0.1.deb
57
+ ```
47
58
48
59
[ dokku ] : https://github.com/progrium/dokku
Original file line number Diff line number Diff line change @@ -24,11 +24,17 @@ if [ -f $DIR/apt-packages ]; then
24
24
apt-get install -y \$ PACKAGES
25
25
echo "-----> Injected packages: \$ PACKAGES"
26
26
fi
27
+ if [ -d $DIR /dpkg-packages ]; then
28
+ for pkg in $DIR /dpkg-packages/*.deb; do
29
+ dpkg -i \$ pkg
30
+ echo "-----> Injected package: \$ pkg"
31
+ done
32
+ fi
27
33
sleep 1 # wait so that docker run has not exited before docker attach
28
34
EOF
29
35
)
30
36
id=$( docker run -d $IMAGE /bin/bash -e -c " $COMMAND " )
31
37
# enable logs
32
38
docker attach $id
33
39
test $( docker wait $id ) -eq 0
34
- docker commit $id $IMAGE > /dev/null
40
+ docker commit $id $IMAGE > /dev/null
You can’t perform that action at this time.
0 commit comments