-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,13 @@ Configure your entrypoint through the environment variable `APP_ENTRYPOINT` (def | |
|
||
### Example Dockerfile | ||
|
||
FROM semtech/mu-ruby-template:2.10.0 | ||
FROM semtech/mu-ruby-template:2.11.0 | ||
LABEL maintainer="[email protected]" | ||
# ONBUILD of mu-ruby-template takes care of everything | ||
|
||
### Versions | ||
The following versions of the mu-ruby-template are available: | ||
* `2.11.0`; `2.11.0-ruby2.5` | ||
* `2.10.0`; `2.10.0-ruby2.5` | ||
* `2.9.0` ; `2.9.0-ruby2.5` | ||
* `2.8.0` ; `2.8.0-ruby2.5` | ||
|
@@ -44,15 +45,15 @@ When developing, you can use the template image, mount the volume with your sour | |
-p 8888:80 \ | ||
-e RACK_ENV=development \ | ||
--name my-js-test \ | ||
semtech/mu-ruby-template:2.10.0 | ||
semtech/mu-ruby-template:2.11.0 | ||
|
||
### Develop in mu.semte.ch stack | ||
When developing inside an existing mu.semte.ch stack, it is easiest to set the development mode and mount the sources directly. This makes it easy to setup links to the database and the dispatcher. | ||
|
||
Optionally, you can publish the microservice on a different port, so you can access it directly without the dispatcher. In the example below, port 8888 is used to access the service directly. We set the path to our sources directly, ensuring we can develop the microservice in its original place. | ||
|
||
yourMicroserviceName: | ||
image: semtech/mu-ruby-template:2.10.0 | ||
image: semtech/mu-ruby-template:2.11.0 | ||
ports: | ||
- 8888:80 | ||
environment: | ||
|
@@ -155,7 +156,7 @@ To run the tests while developing, start an interactive container in the test en | |
|
||
docker run --volume /path/to/your/code:/app | ||
-e RACK_ENV=test | ||
-it semtech/mu-ruby-template:2.10.0 /bin/bash | ||
-it semtech/mu-ruby-template:2.11.0 /bin/bash | ||
|
||
You can now run your tests inside the container with: | ||
|
||
|