-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from TritonDataCenter/alpine
Add Alpine Linux
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ARG ALPINE_RELEASE | ||
FROM alpine:${ALPINE_RELEASE} | ||
COPY helpers /helpers | ||
ARG ALPINE_RELEASE=${ALPINE_RELEASE} | ||
RUN cd /helpers; sh build.sh; cd /; rm -rf helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
# Update the package manager | ||
apk update | ||
# Update all packages | ||
apk upgrade | ||
|
||
# Install extras | ||
apk add -u \ | ||
alpine-base \ | ||
alpine-conf \ | ||
alpine-release \ | ||
apk-tools-doc \ | ||
bash \ | ||
bind-tools \ | ||
busybox-mdev-openrc \ | ||
busybox-openrc \ | ||
busybox-suid \ | ||
curl \ | ||
logrotate \ | ||
logrotate-openrc \ | ||
man-db \ | ||
man-pages \ | ||
mdev-conf \ | ||
openrc \ | ||
openssh \ | ||
sudo \ | ||
vim | ||
|
||
# Enable services | ||
rc-update add bootmisc boot | ||
rc-update add devfs boot | ||
rc-update add syslog boot | ||
rc-update add crond default | ||
rc-update add local default | ||
rc-update add sshd default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# /etc/inittab | ||
::sysinit:/sbin/openrc sysinit | ||
::sysinit:/sbin/openrc boot | ||
::wait:/sbin/openrc default | ||
|
||
# Set up a couple of getty's | ||
::respawn:/sbin/getty 38400 console | ||
|
||
# Stuff to do for the 3-finger salute | ||
::ctrlaltdel:/sbin/reboot | ||
|
||
# Stuff to do before rebooting | ||
::shutdown:/sbin/openrc shutdown |