Giter VIP home page Giter VIP logo

alma-webhook's Introduction

Alma Webhook Service

Auditing Secrets

You can use Gitleaks to check the repository for unencrypted secrets that have been committed.

docker run --rm --name=gitleaks -v $PWD:/code quay.io/upennlibraries/gitleaks:v1.23.0 -v --repo-path=/code --repo-config

Any leaks will be logged to stdout. You can add the --redact flag if you do not want to log the offending secrets.

Docker

This docker image is built from the Official Docker Image and uses the build arguments IMAGE_DISTRO and RUBY_VERSION to define the image tag to pull. See the additional build arguments, along with their descriptions and defaults, and build/run instructions below.

Build Arg Default Description
APP_ENV production The environment to build the image. If set to development the build will install gems in the development and test groups
IMAGE_DISTRO alpine The Linux distribution used to create the image
RAILS_ROOT /home/app The project location
RUBY_VERSION 2.6.6 The ruby version used to create the image

Building an image

To build an image for production run the following command from the project's root dir:

docker build -t alma-webhook .

To build an image for development or testing set the build argument APP_ENV=development:

docker build --build-arg APP_ENV=development -t alma-webhook .

Running a container

After the image has been built a container can be run by using the following command:

docker run -d alma-webhook

By default the container will accept connections on port 3000. If necessary you can forward traffic from a different port on the host by passing the p flag followed by the host-port:container-port configuration:

docker run -d -p 80:3000 alma-webhook

To run the container in a development environment map the project dir into the container and include the env variables APP_UID and APP_GID when running:

docker run -d -v ${PWD}:/home/app -e APP_UID=$(id -u) -e APP_GID=$(id -g) alma-webhook

alma-webhook's People

Contributors

colekettler avatar lts-andrewnk avatar mksndz avatar null-is-null avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.