fix strange link and add actual files

This commit is contained in:
sparklyballs 2017-03-15 13:21:51 +00:00
parent d3242b104c
commit 900545c2c9
4 changed files with 103 additions and 1 deletions

55
Dockerfile Normal file
View file

@ -0,0 +1,55 @@
FROM scratch
ADD rootfs.tar.gz /
MAINTAINER sparklyballs
# set arch for s6 overlay
ARG OVERLAY_ARCH="${OVERLAY_ARCH:-amd64}"
# environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)$ " \
HOME="/root" \
TERM="xterm"
# install packages
RUN \
apk add --no-cache --virtual=build-dependencies \
curl \
tar && \
apk add --no-cache \
bash \
ca-certificates \
coreutils \
shadow \
tzdata && \
# add s6 overlay
OVERLAY_VERSION=$(curl -sX GET "https://api.github.com/repos/just-containers/s6-overlay/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o \
/tmp/s6-overlay.tar.gz -L \
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
tar xfz \
/tmp/s6-overlay.tar.gz -C / && \
# create abc user
groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc && \
# make our folders
mkdir -p \
/app \
/config \
/defaults && \
# clean up
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# add local files
COPY root/ /
ENTRYPOINT ["/init"]

18
README.md Normal file
View file

@ -0,0 +1,18 @@
[linuxserverurl]: https://linuxserver.io
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
[Dockerfile](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile)
[![](https://images.microbadger.com/badges/image/lsiobase/alpine.svg)](https://microbadger.com/images/lsiobase/alpine "Get your own image badge on microbadger.com")[![Build Status](http://jenkins.linuxserver.io:8080/job/Dockers/job/BaseImages/job/lsiobase-alpine/badge/icon)](http://jenkins.linuxserver.io:8080/job/Dockers/job/BaseImages/job/lsiobase-alpine/)
### This base container is not aimed at public consumption. It exists to serve as a single endpoint for LinuxServer.io containers and is based upon [Alpine Linux](https://hub.docker.com/_/alpine/) and [S6 overlay](https://github.com/just-containers/s6-overlay).
If you want to comment\contribute to this image, are looking for support on any of our other work , or are curious about us in general, check out the following.
* [forum.linuxserver.io][forumurl]
* [IRC][ircurl] on freenode at `#linuxserver.io`
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!

@ -1 +0,0 @@
Subproject commit b449725720922b2fcadcf19012d3e69cc63f86df

View file

@ -0,0 +1,30 @@
#!/usr/bin/with-contenv bash
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
echo "
-------------------------------------
_ _ _
| |___| (_) ___
| / __| | |/ _ \
| \__ \ | | (_) |
|_|___/ |_|\___/
|_|
Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/
-------------------------------------
GID/UID
-------------------------------------
User uid: $(id -u abc)
User gid: $(id -g abc)
-------------------------------------
"
chown abc:abc /app
chown abc:abc /config
chown abc:abc /defaults