Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgaidot/node-deploy-toolchain
A toolchain to build, test and deploy javascript applications.
https://github.com/rgaidot/node-deploy-toolchain
aws docker k8s kubernetes vault
Last synced: about 1 month ago
JSON representation
A toolchain to build, test and deploy javascript applications.
- Host: GitHub
- URL: https://github.com/rgaidot/node-deploy-toolchain
- Owner: rgaidot
- License: mit
- Created: 2020-01-02T10:10:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T15:47:09.000Z (almost 5 years ago)
- Last Synced: 2024-10-31T13:23:09.319Z (3 months ago)
- Topics: aws, docker, k8s, kubernetes, vault
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-deploy-toolchain
A toolchain to build, test and deploy javascript applications. node-deploy-toolchain use [Vault](https://www.vaultproject.io) to set environment variables.
This image is available on [Docker Hub](https://hub.docker.com/r/rgaidot/node-deploy-toolchain)## Pre-requisites
- [Docker](https://www.docker.com)
- [AWS Developer account](https://console.aws.amazon.com/)
- [Vault](https://www.vaultproject.io)
- [kubernetes](https://kubernetes.io/) ([kompose](https://github.com/kubernetes/kompose) and [kops](https://github.com/kubernetes/kops))## How to use
### Build docker images
```
docker build --squash . -t node-deploy-toolchain
```### Push your docker image on your AWS ECR
```
docker tag node-deploy-toolchain ACCOUNT_ID.dkr.ecr.eu-west-1.amazonaws.com/node-deploy-toolchain
docker push ACCOUNT_ID.dkr.ecr.eu-west-1.amazonaws.com/node-deploy-toolchain
```### Usage
_You need VAULT_TOKEN and VAULT_URL_
#### On your CLI
```
docker run -ti -e VAULT_TOKEN= -e VAULT_URL= ACCOUNT_ID.dkr.ecr.eu-west-1.amazonaws.com/node-deploy-toolchain aws s3 ls
```#### With Dockerfile
```
FROM ACCOUNT_ID.dkr.ecr.eu-west-1.amazonaws.com/node-deploy-toolchainARG VAULT_TOKEN
ARG VAULT_URLWORKDIR /app
COPY . /appRUN npm run test
```