-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM docker.io/datopian/giftless:0.5.0
MAINTAINER "Adam Thornton <[email protected]>"
ARG USER_NAME giftless
USER root
# We need git to install the GitHub module
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y git # make (if you're rebuilding giftless)
#
# The following is what you need to do if you want to build Giftless from
# source. The state of flask/flask-classful/werkzeug is alarming.
#
#ARG V="0.5.1dev0"
#RUN pip uninstall -y giftless && \
# rm -rf /app
#RUN git clone https://github.com/datopian/giftless /app && \
# echo $V > /app/VERSION
# This is from an issue that was never turned into a PR, even though the
# issue contains the fix. IDK, man.
#COPY patch/schema_hash_algo.diff /app
#RUN cd /app && \
# patch -p1 < schema_hash_algo.diff
#
#RUN cd /app && \
# make requirements.txt && \
# pip install --upgrade --force-reinstall /app
# Force flask/werkzeug -- don't know why requirements.txt doesn't.
#RUN pip uninstall -y werkzeug flask flask-classful && \
# pip install --force-reinstall --no-dependencies \
# 'werkzeug==2.1.1' 'flask==2.1.3' 'flask-classful==0.15.0b1'
ARG SW=/opt/lsst/software
RUN mkdir -p $SW
# Add Rubin GitHub proxy authenticator
ARG GPA=$SW/giftless-github-proxy-auth
COPY . $GPA
RUN pip install PyGitHub
RUN pip install $GPA