Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
19 changes: 1 addition & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,4 @@ jobs:

- run:
name: Run Unit Tests
command: export NODE_ENV=production && npm run test

- run:
name: Execute The Build
command: npm run build

- run:
name: CEA Install Self Test
command: node ./tasks/cea-install my-app

# Sanity test yarn install and tasks
- run:
name: Yarn install test
command: rm -rf ./node_modules && yarn install

- run:
name: Yarn tasks test
command: export NODE_ENV=production && yarn lint && yarn build && yarn test
command: npm run test-template && npm test
56 changes: 55 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,58 @@ For convenience, Create Evergreen App comes with the dependencies needed to run
- For information on adding more browsers, see [the Karma docs](http://karma-runner.github.io/3.0/config/browsers.html).
- For more information on testing in general, see [our wiki!](https://github.com/ProjectEvergreen/create-evergreen-app/wiki).

> Chrome headless is enabled by default since it is the most portable between local and continuous integration environments.
> Chrome headless is enabled by default since it is the most portable between local and continuous integration environments.

#### Docker

Create Evergreen App comes Docker-ready with a built in Dockerfile

To build and tag a docker image with any image/release name for your app:

```bash
$ docker build -t imagename:releasename .
```

To run the docker image in production:

```bash
$ docker run --init --name mycontainer imagename:releasename
```

**Note** Use the `--init` flag so that the exit signals are passed correctly.

Which should display something like:

```
Serving at http://e899fd0ef42c:8000, http://127.0.0.1:8000, http://172.17.0.2:8000
```

You will need to access your app using the container's IP and port(yours will be different, but it's the third URL shown above).

Otherwise, you can get your container `IPAddress` with:

```
docker inspect mycontainer
```

#### Docker Development

You can run your application's webpack-dev-server within a container by modifiying the webpack.config.develop.js with your container's IP address(yours will be different, see above)

```
host: '172.17.0.2',
```

You can mount and run your application's `src` folder so that your changes are immediately reflected within a running container with:

```
docker run --init --name mycontainer -v "$(pwd)"/src:/opt/app/src imagename:releasename npm run develop
```

#### Docker Testing

To test the docker image:

```bash
$ docker run --init imagename:releasename npm test
```
Loading