Skip to content

Commit

Permalink
Use Docker multistate-build to containerize packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Jan 16, 2025
1 parent 181e458 commit 447b3f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 4 additions & 0 deletions docs/docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ mvn clean package
Running Webservice in Docker
----------------------------

Please make sure Docker is installed
([_Installing Docker_](https://docker.qubitpi.org/desktop/setup/install/mac-install/)), then execute the following
commands:

### Getting the Image

We can obtain the image in one of the 2 approaches below:
Expand Down
26 changes: 10 additions & 16 deletions docs/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,24 @@ In both cases, the next steps are:
2. Uncheck "Include all branches".
3. Click on "Create repository from template".

For more details on how to create repositories using template, read the article on the GitHub website: Creating a repository from a template.
For more details on how to create repositories using template, read the article on the GitHub website:
[Creating a repository from a template](https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template).

Please make sure Docker is installed
([_Installing Docker_](https://docker.qubitpi.org/desktop/setup/install/mac-install/)), then execute the following
commands:
:::caution

If the repository is public, GitHub offers unlimited free build minutes. If it's a private repository, however,
[billing policy](https://docs.github.com/en/billing/managing-billing-for-your-products/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes)
applies

```console
git clone https://github.com/QubitPi/jersey-webservice-template.git
cd jersey-webservice-template
docker build -t jack20191124/jersey-webservice-template .
docker run --name=jersey-webservice-template -it -p 8080:8080 jack20191124/jersey-webservice-template
```
:::

That's it. A healthcheck endpoint is now ready at localhost:8080/v1/data/healthcheck. At this point, JWT has generated
a Java webservice project with just what we need to start quickly. Developer can now start adding business value and
__get work done much faster in a standard way__. The following sections of this documentation contain further details on
how to proceed next.

- [Development](./development)
- [Configuration](./configuration)




- [Development](development)
- [Configuration](configuration)

[JAX-RS]: https://jcp.org/en/jsr/detail?id=370
[Jersey Webservice Template]: https://qubitpi.github.io/jersey-webservice-template/
Expand Down

0 comments on commit 447b3f5

Please sign in to comment.