meg-huggingface
commited on
Commit
•
6d767ba
1
Parent(s):
f60da9f
Switching from the directory being called 'data' to 'app', as 'data' seems to have broken it ---- ?
Browse files- Dockerfile +7 -7
- train.sh +2 -2
Dockerfile
CHANGED
@@ -13,29 +13,29 @@ RUN chmod +x /train.sh
|
|
13 |
RUN chmod +x /upload_results.py
|
14 |
|
15 |
# Make the working directory for user.
|
16 |
-
RUN mkdir /
|
17 |
|
18 |
# Start installing stuff as root so it doesn't complain about install permissions.
|
19 |
#RUN pip install --no-cache-dir --upgrade pip
|
20 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
21 |
# Clone into the working directory for the user.
|
22 |
-
RUN git clone https://github.com/lee-ny/teaching_arithmetic.git /
|
23 |
#&& cd teaching_arithmetic && pip install -e .
|
24 |
|
25 |
# Copy all files we have into the user's working directory.
|
26 |
-
COPY --chown=user . /
|
27 |
# Kept getting permission denied errors when running train.py, which tries to
|
28 |
# create the out directory. Just doing this to try to help that.
|
29 |
-
RUN mkdir /
|
30 |
-
RUN chmod -R 777 /
|
31 |
|
32 |
# Switch to the user profile.
|
33 |
# This will help make sure the permissions of the cloned git stuff
|
34 |
# don't require root privileges (I am guessing).
|
35 |
USER user
|
36 |
|
37 |
-
# Switch to the /
|
38 |
-
WORKDIR /
|
39 |
|
40 |
# Permissions. Permissions. Already did this. Doing it again anyway.
|
41 |
RUN chmod +x train.sh
|
|
|
13 |
RUN chmod +x /upload_results.py
|
14 |
|
15 |
# Make the working directory for user.
|
16 |
+
RUN mkdir /app
|
17 |
|
18 |
# Start installing stuff as root so it doesn't complain about install permissions.
|
19 |
#RUN pip install --no-cache-dir --upgrade pip
|
20 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
21 |
# Clone into the working directory for the user.
|
22 |
+
RUN git clone https://github.com/lee-ny/teaching_arithmetic.git /app/teaching_arithmetic
|
23 |
#&& cd teaching_arithmetic && pip install -e .
|
24 |
|
25 |
# Copy all files we have into the user's working directory.
|
26 |
+
COPY --chown=user . /app
|
27 |
# Kept getting permission denied errors when running train.py, which tries to
|
28 |
# create the out directory. Just doing this to try to help that.
|
29 |
+
RUN mkdir /app/teaching_arithmetic/out
|
30 |
+
RUN chmod -R 777 /app/
|
31 |
|
32 |
# Switch to the user profile.
|
33 |
# This will help make sure the permissions of the cloned git stuff
|
34 |
# don't require root privileges (I am guessing).
|
35 |
USER user
|
36 |
|
37 |
+
# Switch to the /app working directory.
|
38 |
+
WORKDIR /app
|
39 |
|
40 |
# Permissions. Permissions. Already did this. Doing it again anyway.
|
41 |
RUN chmod +x train.sh
|
train.sh
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
echo "Starting attempt at training with default from git repo!"
|
4 |
-
|
5 |
-
ls /
|
6 |
cd teaching_arithmetic
|
7 |
mkdir -p out
|
8 |
python train.py config2/addition/plain/train_addition_bal.py \
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
echo "Starting attempt at training with default from git repo!"
|
4 |
+
#cd teaching_arithmetic
|
5 |
+
ls /app/*
|
6 |
cd teaching_arithmetic
|
7 |
mkdir -p out
|
8 |
python train.py config2/addition/plain/train_addition_bal.py \
|