-
Notifications
You must be signed in to change notification settings - Fork 16
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 #25 from EGA-archive/images
EGA-archive Images
- Loading branch information
Showing
17 changed files
with
597 additions
and
299 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,34 @@ | ||
FROM python:3.6-alpine3.8 | ||
LABEL maintainer "EGA System Developers" | ||
|
||
RUN apk add --no-cache \ | ||
libressl libressl-dev make gcc musl-dev libffi-dev postgresql-libs postgresql-dev git | ||
|
||
################################################# | ||
## | ||
## Install LocalEGA stuff | ||
## | ||
################################################# | ||
|
||
ARG LEGA_GID=1000 | ||
RUN addgroup -g ${LEGA_GID} lega && \ | ||
adduser -D -G lega lega | ||
|
||
COPY setup.py /root/LocalEGA/setup.py | ||
COPY lega /root/LocalEGA/lega | ||
COPY requirements.txt /root/LocalEGA/requirements.txt | ||
|
||
RUN pip install -r /root/LocalEGA/requirements.txt | ||
RUN pip install /root/LocalEGA && \ | ||
rm -rf /root/LocalEGA | ||
|
||
RUN apk del --no-cache --purge \ | ||
gcc git make \ | ||
postgresql-dev musl-dev libffi-dev libressl-dev \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
# Replaces the need for gosu | ||
# But instead, we use the 'user:' in the docker-compose file | ||
# to still leave the door open for debugging | ||
# | ||
# USER lega |
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,18 @@ | ||
FROM egarchive/lega-inbox-os:latest | ||
LABEL maintainer "EGA System Developers" | ||
|
||
################################################# | ||
## | ||
## Install the notification system | ||
## | ||
################################################# | ||
|
||
# These are enough | ||
RUN pip3.6 install --upgrade pip && \ | ||
pip3.6 install PyYaml pika==0.12.0 uvloop | ||
|
||
COPY setup.py /root/LocalEGA/setup.py | ||
COPY lega /root/LocalEGA/lega | ||
|
||
RUN pip install /root/LocalEGA && \ | ||
rm -rf /root/LocalEGA |
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
Oops, something went wrong.