Skip to content
Snippets Groups Projects
Commit 29f55534 authored by Andrew Kapuscinski's avatar Andrew Kapuscinski
Browse files

added initial docker setup for running NGAS locally

parent 260a8321
No related branches found
No related tags found
1 merge request!347added initial docker setup for running NGAS locally
This commit is part of merge request !347. Comments created here will be created in the context of that merge request.
......@@ -79,3 +79,9 @@ services/**/**/testing
tmp
delivery_root
lustre/
# ignore local NGAS
local_ngas_root/cache/
local_ngas_root/log/
local_ngas_root/processing/
local_ngas_root/*.pid
Dockerfile.ngas 0 → 100644
FROM icrar/ngas:11.0.2
# Get postgres/mysql development stuff in the image
RUN yum -y install epel-release && \
yum install -y postgresql-libs
USER ngas
RUN ./home/ngas/ngas_rt/bin/pip install psycopg2-binary==2.7.7
USER root
......@@ -50,6 +50,7 @@ cache:
# Build DB image
db:
docker build --no-cache -t ssa-containers.aoc.nrao.edu/ops/ci/db:workspaces -f ./ci/psql/Dockerfile.db .
docker build --no-cache -t ssa-containers.aoc.nrao.edu/ops/ci/db-ngas:workspaces -f ./ci/psql/Dockerfile.db-ngas .
# Build docker images
build: docker-base db cache
......
FROM postgres:12.6-alpine
ARG NGAS_VERSION=11.0.2
WORKDIR /repos
RUN apk add git && \
git clone --depth 1 --branch "v${NGAS_VERSION}" https://github.com/ICRAR/ngas.git && \
cp ngas/src/ngamsCore/ngamsSql/ngamsCreateTables-PostgreSQL.sql /docker-entrypoint-initdb.d/ngamsCreateTables-PostgreSQL.sql
......@@ -22,6 +22,16 @@ services:
POSTGRES_PASSWORD: docker
command: postgres -c listen_addresses=*
db-ngas:
image: ssa-containers.aoc.nrao.edu/ops/ci/db-ngas:workspaces
restart: always
ports:
- "54323:5432"
environment:
POSTGRES_USER: ngas
POSTGRES_PASSWORD: docker
command: postgres -c listen_addresses=*
amqp:
image: rabbitmq:3.8-management
restart: always
......@@ -43,6 +53,15 @@ services:
- ./delivery_root:/tmp/delivery_root
- ./lustre/aoc/cluster/pipeline/docker/workspaces:/lustre/aoc/cluster/pipeline/docker/workspaces
ngas:
build:
context: .
dockerfile: ./Dockerfile.ngas
ports:
- "7777:7777"
volumes:
- ./local_ngas_root:/home/ngas/NGAS
schema:
build:
context: ./schema/
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment