Gosse Minnema
commited on
Commit
·
448aabd
1
Parent(s):
f7e2044
Download sf datasets at startup time
Browse files- Dockerfile +2 -0
- docker_commands.sh +4 -2
Dockerfile
CHANGED
@@ -6,11 +6,13 @@ RUN chmod -R 777 /app
|
|
6 |
RUN mkdir /nltk_data
|
7 |
RUN mkdir /.allennlp
|
8 |
RUN mkdir /.cache
|
|
|
9 |
RUN mkdir /.local
|
10 |
RUN chmod -R 777 /nltk_data
|
11 |
RUN chmod -R 777 /.allennlp
|
12 |
RUN chmod -R 777 /.cache
|
13 |
RUN chmod -R 777 /.local
|
|
|
14 |
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
15 |
RUN apt-get install git-lfs
|
16 |
RUN git lfs install
|
|
|
6 |
RUN mkdir /nltk_data
|
7 |
RUN mkdir /.allennlp
|
8 |
RUN mkdir /.cache
|
9 |
+
RUN mkdir /.sf-data-cache
|
10 |
RUN mkdir /.local
|
11 |
RUN chmod -R 777 /nltk_data
|
12 |
RUN chmod -R 777 /.allennlp
|
13 |
RUN chmod -R 777 /.cache
|
14 |
RUN chmod -R 777 /.local
|
15 |
+
RUN chmod -R 777 /.sf-data-cache
|
16 |
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
17 |
RUN apt-get install git-lfs
|
18 |
RUN git lfs install
|
docker_commands.sh
CHANGED
@@ -1,9 +1,11 @@
|
|
|
|
|
|
|
|
|
|
1 |
cd spanfinder/
|
2 |
python -m sociolome.lome_webserver &
|
3 |
cd ..
|
4 |
|
5 |
-
rm -rfv /.cache/sfdata/.git
|
6 |
-
mv -v /.cache/sfdata/* /app/
|
7 |
du -h -d 2
|
8 |
sleep 10
|
9 |
|
|
|
1 |
+
git clone --depth=1 --branch=main https://gossminn:[email protected]/datasets/responsibility-framing/sociofillmore-datasets /.sf-data-cache/
|
2 |
+
rm -rfv /.sf-data-cache/.git/
|
3 |
+
mv -v /.cache/.sf-data-cache/ /app/
|
4 |
+
|
5 |
cd spanfinder/
|
6 |
python -m sociolome.lome_webserver &
|
7 |
cd ..
|
8 |
|
|
|
|
|
9 |
du -h -d 2
|
10 |
sleep 10
|
11 |
|