diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 15 | ||||
-rw-r--r-- | docker/docker-compose.yml | 59 | ||||
-rw-r--r-- | docker/noria/Dockerfile | 14 |
3 files changed, 0 insertions, 88 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 15b712d..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# composer install -#FROM liuchong/rustup:nightly as build -#COPY ./ /app/ -#WORKDIR /app -#RUN cargo build --release - - -FROM debian as spotify_intersect -WORKDIR /srv/spotify_intersect -#COPY --from=build /app/target/release/spotify_intersect ./ -RUN apt-get update && apt-get -y install libssl-dev ca-certificates -COPY ./target/release/spotify_intersect ./ -COPY .env /srv/spotify_intersect/.env -COPY Rocket.toml ./ -CMD ./spotify_intersect diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index 0481399..0000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,59 +0,0 @@ -version: "3.6" -services: - spotify_intersect: - image: spotify_intersect - container_name: spotify_intersect - ports: - - 8085:8085 - build: - context: .. - dockerfile: docker/Dockerfile - #environment: - networks: - - database - - hostnet - depends_on: - - track_db - links: - - "track_db:db" - #volumes: - #- /etc/ssl/certs:/etc/ssl/certs:ro - # - zookeeper - track_db: - image: postgres - container_name: track_db - networks: - - database - ports: - - 5432:5432 - environment: - POSTGRES_PASSWORD: example - - volumes: - - ./data:/var/lib/postgresql/data - #track_db: - #image: noria - # build: - #context: .. - #dockerfile: docker/noria/Dockerfile - #volumes: - #- db:/srv/noria - #networks: - #- database - # depends_on: - #- zookeeper - #volumes: - #db: {} - #zookeeper: - #image: 'bitnami/zookeeper:latest' - #networks: - #- database - #environment: - #ALLOW_ANONYMOUS_LOGIN: "yes" - -networks: - database: - driver: bridge - hostnet: - external: true - name: frontend diff --git a/docker/noria/Dockerfile b/docker/noria/Dockerfile deleted file mode 100644 index 10b7145..0000000 --- a/docker/noria/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -# composer install -FROM liuchong/rustup:nightly as build -WORKDIR /app -RUN apt-get update -RUN apt-get -y install git clang libclang-dev libssl-dev liblz4-dev -RUN git clone https://github.com/mit-pdos/noria /app -RUN cargo build --release --bin noria-server -#RUN file target/release/noria/server - - -FROM debian as spotify_intersect -WORKDIR /srv/noria -COPY --from=build /app/target/release/noria-server /usr/bin -CMD noria-server --deployment track_db --no-reuse -z zookeeper:2181 |