Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Container #1531

Open
JeremyMarshall opened this issue Jan 4, 2016 · 4 comments
Open

Docker Container #1531

JeremyMarshall opened this issue Jan 4, 2016 · 4 comments

Comments

@JeremyMarshall
Copy link
Collaborator

I was wondering what the policy towards docker is.

There is a heroku deployer (which I use) but recently I've beed using Docker and now https://www.tutum.co/ from the dist folder. The problem as I see it is that the standard docker Node container needs a great deal of interaction when doing an npm install so the whole create and destroy is a bit slow. I put together a similar container which does the npm install ahead of time https://hub.docker.com/r/jeremymarshall/angular-fullstack-dist/

There is also a wider question of providing a mongo container and possibly using nginx as a reverse proxy ahead in a compose/tutum set

JeremyMarshall added a commit to JeremyMarshall/generator-angular-fullstack that referenced this issue Feb 17, 2016
Add functionality to add Dockerfile to dist folder
in the same way as the heroku Procfile is created
No docker integration to build image

Closes angular-fullstack#1531
JeremyMarshall added a commit to JeremyMarshall/generator-angular-fullstack that referenced this issue Feb 17, 2016
Add functionality to add Dockerfile to dist folder
in the same way as the heroku Procfile is created
No docker integration to build image

Closes angular-fullstack#1531
JeremyMarshall added a commit to JeremyMarshall/generator-angular-fullstack that referenced this issue Feb 17, 2016
Add functionality to add Dockerfile to dist folder
in the same way as the heroku Procfile is created
No docker integration to build image

Closes angular-fullstack#1531
@adambarthelson
Copy link

adambarthelson commented Jun 27, 2016

When I use Docker with my Angular Fullstack applications, I've been using this: https://gist.github.com/adambarthelson/ef57b7b90814c771be9a02381ef2182b

This way it's compatible with Dockerhub's automated builds, and you're not having to manually push fresh images to your registry like a savage (which is extremely slow).

An example docker-compose.yml that links this with a Mongo container is:

version: '2'

services:
  web:
    image: you/your-angular-fullstack-image
    links:
      - mongodb:mongodb
    ports:
      - '8080:8080'
    restart: always
  mongodb:
    image: mongo
    ports:
      - '27017:27017'
    restart: always

@adambarthelson
Copy link

adambarthelson commented Jun 27, 2016

Seems comments for #516 was turned off because @Awk34 got tired of receiving +1 notifications, haha. My comment might be more relevant there.

@Awk34
Copy link
Member

Awk34 commented Jun 27, 2016

Seems comments for #516 was turned off because @Awk34 got tired of receiving +1 notifications, haha.

Indeed...

@Awk34
Copy link
Member

Awk34 commented Jun 27, 2016

@adambarthelson refer to #1965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants