Code Monkey home page Code Monkey logo

node-demo-app's Introduction

node demo app

Docker

docker build -t yourlogin/node-demo-app .
docker push yourlogin/node-demo-app

Debian package (*.deb file)

docker build -t builddep -f Dockerfile.builddep .
docker run -it -v $PWD:/root builddep
cd /root
apt-get install -y npm    # install npm to be able to run npm install
git-buildpackage          # creates *.deb file in node-demo-app_<version>_<arch>.deb
cp ../*.deb .             # *.deb file is created 1 level lower, copy it to current level so it is saved in the volume
exit                      # exit container

Create S3 debian repository

apt-get install aptly
aptly repo create -distribution=xenial -component=main release
aptly repo add release /mnt/deb # directory or *.deb file

edit S3 settings in ~/aptly.conf (only add public-read if you wantto make the S3 bucket public)

  ...
  "S3PublishEndpoints": {
    "spinnaker-debian-repo": {
      "region": "eu-west-1",
      "bucket": "spinnaker-debian-repo",
      "acl": "public-read",
      "awsAccessKeyID": "access key id",
      "awsSecretAccessKey": "aws secret access key"
    }
  },
  ...

Publish to S3

aptly publish repo release s3:spinnaker-debian-repo:

Update repo afterwards

aptly publish update xenial s3:spinnaker-debian-repo:

node-demo-app's People

Contributors

jornjambers avatar wardviaene avatar

Watchers

 avatar  avatar  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.