Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
`streamnet_config` contains the configuration bundle / dockerfiles that build up the Streamnet server (aka stream.biggame).

A docker-compose manifest is included in the root which should spin everything up (but you'll need to copy in a nodecg bundle to `/nodecg/bundles`, as well as the `streamnet_app` application to `/app`).

## To Install

```console
git clone --recurse-submodules git@github.com:thebiggame/streamnet_config.git
cd streamnet_config
docker-compose up
```
2 changes: 2 additions & 0 deletions nodecg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM nodecg/nodecg:latest
# Copy Bundle
COPY bundles /usr/src/app/bundles

# A hack to get the bower install to work. Something to do with .git files confusing it all. Meh.. https://github.com/bower/bower/issues/1492
RUN cd /usr/src/app/bundles/thebiggame && rm .git .gitignore .gitattributes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think this should be handled with a .dockerignore file, for two reasons: first, it means these files don't end up in the image at all, saving layer size; and second, it doesn't require an extra RUN layer.

Documentation on .dockerignore here: https://docs.docker.com/engine/reference/builder/#dockerignore-file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea, i'll get on it

# Install dependencies
RUN cd /usr/src/app/bundles/thebiggame && npm install --production
RUN cd /usr/src/app/bundles/thebiggame && bower install --allow-root