GithubHelp home page GithubHelp logo

susom / biocatalyst Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 0.0 2.93 MB

License: Apache License 2.0

Shell 0.09% Dockerfile 0.08% JavaScript 0.20% TypeScript 33.62% HTML 6.31% CSS 5.29% Java 54.41%

biocatalyst's Introduction

Biocatalyst

Setup

Install Gradle

Download Gradle from their Releases page: https://gradle.org/releases/ Alternatively, if you use Homebrew you can run brew install gradle

Install Docker

Download it from a link such as: https://docs.docker.com/docker-for-mac/install/

Increase memory allocated to Docker

As we're running a number of containers, we must increase the default memory allocated to docker. Open the docker settings and set the memory to 4GB.

alt text

Make scripts executable (Mac)

If you're on a Mac, you'll need to give the scripts in this project executable permissions. Open terminal, and cd to the project repo. Then, run:

chmod +x scripts/*.sh
scripts/setup.sh

Follow the next steps and start the stack with docker compose:

cd docker
docker-compose up -d

Try it out

Open a web browser and navigate to http://localhost:4200 and you should be up and running!

Utility scripts

You can run scripts/clean_refresh.sh It's highly recommended to run this script after a failed integration to ensure a clean starting point.

Developer notes

You can run this either as a local docker stack (as above), which requires you to create a new local docker image with each code change. You can run gradle docker to build and tag with latest. Then, run clean_refresh.sh to pick up the newer container. This is using the docker set of configuration properties, e.g. docker.properties in the Spring apps' resources directory.

You can also run individual Spring applications with gradle bootRun using your IDE. This is much faster for local development, particularly if you're working on one or more service. This would use local.properties.

You can also mix and match and create your own custom configuration based on your needs.

In the event you make local changes and are running "in docker mode" - you can recreate all the docker containers with the latest tag locally by re-running setup.sh.

Deployment

As these are containers, the plan is to provide environment-specific properties files and add them to the application classpath.

biocatalyst's People

Contributors

garricko avatar

Stargazers

Dan Stark avatar Pete Shepley avatar Gary Sieling avatar

Watchers

James Cloos avatar Joshua avatar Dan Stark avatar Susan Weber avatar Andy Martin avatar Pete Shepley avatar  avatar  avatar

biocatalyst's Issues

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.