GPortas / hdc3a-cron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hdc3a-cron

The cron container for monitoring the DRS dropbox for LOADREPROT files

  • log files are in the logs subdirectory

Technology Stack

Language

NodeJS

Framework

Express

Development Operations

Docker Compose

Local Development Environment Setup Instructions

1: Clone the repository to a local directory

git clone git@github.huit.harvard.edu:LTS/hdc3a-cron.git

2: Create app config

Create config file for environment variables
  • Make a copy of the config example file ./env-example.txt
  • Rename the file to .env
  • Replace placeholder values as necessary

Note: The config file .env is specifically excluded in .gitignore and .dockerignore, since it contains credentials it should NOT ever be committed to any repository.

3: Start

START

This command builds all images and runs all containers specified in the docker-compose-local.yml configuration.

docker-compose -f docker-compose-local.yml up -d --build --force-recreate

4: SSH into Container (optional)

Run docker exec to execute a shell in the container by name

Open a shell using the exec command to access the hdc3a-cron container.

docker exec -it cron bash

5: Stop

STOP AND REMOVE

This command stops and removes all containers specified in the docker-compose-local.yml configuration. This command can be used in place of the 'stop' and 'rm' commands.

docker-compose -f docker-compose-local.yml down

About


Languages

Language:Python 60.7%Language:JavaScript 26.5%Language:Dockerfile 12.8%