Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 2a2387b

Browse files
committed
Revert "Updates docker container to reflect changes to specify7"
This reverts commit 1be89f3.
1 parent bf8bdc8 commit 2a2387b

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

Dockerfile

+7-18
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ COPY specify7_config /usr/local/specify_config
6969

7070
# Get Specify 7
7171
RUN cd /usr/local/ \
72-
&& git clone https://github.com/specify/specify7/ \
73-
&& cd specify7 \
74-
&& git checkout workbench-upload
72+
&& git clone https://github.com/specify/specify7/
7573
WORKDIR /usr/local/specify7
7674

7775
# convert line endings
@@ -83,8 +81,7 @@ RUN ln -sf /usr/local/specify_config/local_specify_settings.py ./specifyweb/sett
8381

8482
# install virtual environment
8583
RUN python3.6 -m venv ve \
86-
&& ve/bin/pip install --no-cache-dir -r requirements.txt \
87-
&& ve/bin/pip install celery
84+
&& ve/bin/pip install --no-cache-dir -r requirements.txt
8885

8986
# copy specify6 installation
9087
COPY specify6_thick_client /usr/local/specify6
@@ -127,14 +124,12 @@ VOLUME [ "/usr/local/specify_config" ]
127124

128125
# Clone repository
129126
RUN cd /usr/local/ \
130-
&& git clone https://github.com/specify/web-asset-server/ \
131-
&& cd web-asset-server \
132-
&& git checkout development
127+
&& git clone https://github.com/specify/web-asset-server/
133128

134129
WORKDIR /usr/local/web-asset-server/
135130

136131
# Get ExifRead, Paste and sh
137-
RUN pip3 install -r requirements.txt
132+
RUN pip install -r requirements.txt
138133

139134
# disable security since container is going to be isolated
140135
RUN sed -i "s/'test_attachment_key'/None/" settings.py
@@ -145,18 +140,12 @@ RUN sed -i "s/wsgiref/paste/" settings.py
145140
# change port to 8081
146141
RUN sed -i "s/8080/8081/" settings.py
147142

148-
# allow ImageMagick to create thumbnails for PDF files
149-
RUN sed -i "s/<policy domain=\"coder\" rights=\"none\" pattern=\"PDF\" \/>/<policy domain=\"coder\" rights=\"read|write\" pattern=\"PDF\" \/><policy domain=\"coder\" rights=\"read|write\" pattern=\"LABEL\" \/>/" /etc/ImageMagick-6/policy.xml
150-
151-
152-
153-
# create a direcory for attachments
143+
# create a direcory for attachments # TODO: test if this is needed <<<<<<<<<<<<<<<<<
154144
RUN mkdir -p /home/specify/attachments/
155145

156146

157-
CMD /etc/init.d/apache2 start -DFOREGROUND \
158-
&& python3 server.py
159-
#CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]
147+
CMD /etc/init.d/apache2 start \
148+
&& python server.py
160149

161150

162151

specify7_config/local_specify_settings.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
SCHEMA_LANGUAGE = 'en'
2020

2121
# The Specify web attachment server URL.
22-
#WEB_ATTACHMENT_URL = 'http://localhost:8081/web_asset_store.xml'
23-
WEB_ATTACHMENT_URL = 'http://host.docker.internal:8081/web_asset_store.xml'
22+
WEB_ATTACHMENT_URL = 'http://localhost:8081/web_asset_store.xml'
2423

2524
# The Specify web attachment server key.
2625
WEB_ATTACHMENT_KEY = ''

specify7_config/local_specifyweb_apache.conf

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<VirtualHost *:80>
22
<Directory />
33
Require all granted
4-
Options +Indexes
54
</Directory>
65

76
# Alias the following to the location set in specifyweb/settings/local_specify_settings.py

0 commit comments

Comments
 (0)