Parcourir la source

built with 1.1.0 scripts

Henry Oswald il y a 8 ans
Parent
commit
9afb7e9417
2 fichiers modifiés avec 2 ajouts et 30 suppressions
  1. 2 2
      services/clsi/Dockerfile
  2. 0 28
      services/clsi/docker-compose.yml

+ 2 - 2
services/clsi/Dockerfile

@@ -19,9 +19,9 @@ WORKDIR /app
 # All app and node_modules will be owned by root.
 # The app will run as the 'app' user, and so not have write permissions
 # on any files it doesn't need.
-RUN useradd --user-group --create-home --home-dir /app --shell /bin/bash app
+RUN useradd --user-group --create-home --home-dir /app --shell /bin/false app
 
 RUN [ -e ./install_deps.sh ] && ./install_deps.sh
 
-# USER app
+USER app
 CMD ["node","app.js"]

+ 0 - 28
services/clsi/docker-compose.yml

@@ -29,34 +29,6 @@ services:
       - mongo
     entrypoint: npm run test:acceptance
 
-  synctex:
-    image: quay.io/sharelatex/texlive-full:2017.1
-    volumes:
-      - ~/Projects/sharelatex-dev-environment/clsi/compiles/cd749215b3512:/compile
-      - ./bin/synctex:/opt/synctex
-
-    entrypoint: 
-      /opt/synctex pdf /compile/output.pdf 1 100 200
-      # /opt/synctex code -h
-      # /opt/synctex code /compile/main.tex ./main.tex 3 5
-      # ls -al
-
-  app:
-    build: .
-    volumes:
-      - .:/app
-    working_dir: /app
-    extends:
-      file: docker-compose-config.yml
-      service: dev
-    environment:
-      REDIS_HOST: redis
-      MONGO_HOST: mongo
-    depends_on:
-      - redis
-      - mongo
-
-
   redis:
     image: redis