Spaces:
Sleeping
Sleeping
Commit
·
e3036b0
1
Parent(s):
6c769c4
levantando permisos
Browse files- Dockerfile +15 -16
- r_shiny_app/global.R +4 -0
Dockerfile
CHANGED
|
@@ -17,29 +17,28 @@ FROM misantamaria/dvats-rstudio-ghf:latest
|
|
| 17 |
|
| 18 |
SHELL [ "/bin/bash", "--login", "-c" ]
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
RUN chown ${USER_ID}:${GROUP_ID} /home/data
|
| 23 |
-
RUN chown ${USER_ID}:${GROUP_ID} /home/data/wandb_artifacts
|
| 24 |
RUN chown ${USER_ID}:${GROUP_ID} /var/run/s6
|
| 25 |
-
RUN chown ${USER_ID}:${GROUP_ID} /home/
|
| 26 |
|
| 27 |
-
RUN
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
RUN mv /home/data/wandb_artifacts /home/macu/data/wandb_artifacts
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
RUN chmod +777 /home/data/wandb_artifacts
|
| 39 |
RUN mkdir ./artifacts
|
| 40 |
RUN chown ${USER_ID}:${GROUP_ID} ./artifacts
|
| 41 |
RUN chmod +777 ./artifacts
|
| 42 |
-
|
| 43 |
|
| 44 |
RUN echo "--> Go!"
|
| 45 |
|
|
|
|
| 17 |
|
| 18 |
SHELL [ "/bin/bash", "--login", "-c" ]
|
| 19 |
|
| 20 |
+
RUN echo "${USER_ID} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
| 21 |
+
|
|
|
|
|
|
|
| 22 |
RUN chown ${USER_ID}:${GROUP_ID} /var/run/s6
|
|
|
|
| 23 |
|
| 24 |
+
RUN chown ${USER_ID}:${GROUP_ID} /home/data \
|
| 25 |
+
&& chown ${USER_ID}:${GROUP_ID} /home/data/wandb_artifacts \
|
| 26 |
+
&& chown ${USER_ID}:${GROUP_ID} /var/run/s6 \
|
| 27 |
+
&& mkdir /home/macu \
|
| 28 |
+
&& mkdir /home/macu/data
|
| 29 |
+
|
| 30 |
RUN mv /home/data/wandb_artifacts /home/macu/data/wandb_artifacts
|
| 31 |
|
| 32 |
+
RUN mkdir /home/app/wandb \
|
| 33 |
+
&& chown ${USER_ID}:${GROUP_ID} /home/app/wandb \
|
| 34 |
+
&& chown ${USER_ID}:${GROUP_ID} /home/macu/data/wandb_artifacts \
|
| 35 |
+
&& mkdir /home/data/wandb_artifacts \
|
| 36 |
+
&& chmod +777 /home/app/wandb \
|
| 37 |
+
&& chmod +777 /home/data/wandb_artifacts
|
|
|
|
| 38 |
RUN mkdir ./artifacts
|
| 39 |
RUN chown ${USER_ID}:${GROUP_ID} ./artifacts
|
| 40 |
RUN chmod +777 ./artifacts
|
| 41 |
+
|
| 42 |
|
| 43 |
RUN echo "--> Go!"
|
| 44 |
|
r_shiny_app/global.R
CHANGED
|
@@ -155,8 +155,12 @@ make_individual_dygraph <- function(i){
|
|
| 155 |
# RETRIEVE WANDB RUNS & ARTIFACTS #
|
| 156 |
###################################
|
| 157 |
|
|
|
|
|
|
|
| 158 |
api <- wandb$Api()
|
| 159 |
|
|
|
|
|
|
|
| 160 |
print("Querying encoders")
|
| 161 |
encs_l <- dvats$get_wandb_artifacts(project_path = glue(WANDB_ENTITY, "/", WANDB_PROJECT),
|
| 162 |
type = "learner",
|
|
|
|
| 155 |
# RETRIEVE WANDB RUNS & ARTIFACTS #
|
| 156 |
###################################
|
| 157 |
|
| 158 |
+
system('ls -la /home/app', intern=TRUE)
|
| 159 |
+
|
| 160 |
api <- wandb$Api()
|
| 161 |
|
| 162 |
+
system('ls -la /home/app', intern=TRUE)
|
| 163 |
+
|
| 164 |
print("Querying encoders")
|
| 165 |
encs_l <- dvats$get_wandb_artifacts(project_path = glue(WANDB_ENTITY, "/", WANDB_PROJECT),
|
| 166 |
type = "learner",
|