You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-25Lines changed: 8 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Dockerized Epsilon Playground
2
2
3
-
This is a dockerized version of the [Epsilon Playground](https://eclipse.org/epsilon/playground).
3
+
This is a Dockerized version of the [Epsilon Playground](https://eclipse.org/epsilon/playground).
4
4
5
-
## Fetch and Run the Docker Hub Image
5
+
## Fetch and Run the Image
6
6
7
-
Use this command to fetch the latest version of the Epsilon Playground image from Docker Hub and run it in a container:
7
+
Use this command to fetch the latest version of the Epsilon Playground image from Github Packages and run it in a container:
8
8
9
9
```shell
10
-
docker run -p 8000:80 eclipseepsilon/playground:latest
10
+
docker run --rm -p 8000:80 ghcr.io/epsilonlabs/playground-docker:micronaut
11
11
```
12
12
13
13
## Build and Run the Docker Image
@@ -46,13 +46,13 @@ You can now clone the repository and use this command to build the image:
46
46
Use this command to run the image in a container:
47
47
48
48
```shell
49
-
docker run -p 8000:80 playground:micronaut
49
+
docker run -p 8000:80 playground-docker:micronaut
50
50
```
51
51
52
52
Should you need to customise the port that `nginx` runs on, you can do so through the `PORT` environment variable (as required by Google Cloud Build):
53
53
54
54
```shell
55
-
docker run --env PORT=8020 -p 8000:8020 playground:micronaut
55
+
docker run --env PORT=8020 -p 8000:8020 playground-docker:micronaut
56
56
```
57
57
58
58
## Access the Epsilon Playground
@@ -64,7 +64,7 @@ Once the container is up, go to http://localhost:8000 in your browser to access
64
64
The dockerized version of the playground comes with the same set of examples as the [online version](https://eclipse.org/epsilon/playground). To start an instance with your own examples on the left hand side, use the following command, replacing `<examples-folder-absolute-path>` with the **absolute** path of your `examples` folder.
65
65
66
66
```shell
67
-
docker run -p 8000:80 -v <examples-folder-absolute-path>:/etc/nginx/html/examples playground:latest
67
+
docker run -p 8000:80 -v <examples-folder-absolute-path>:/etc/nginx/html/examples playground-docker:micronaut
68
68
```
69
69
70
70
Your `examples` folder should contain an `examples.json` file with at least one example. A sample `examples` folder with a single example is provided [in this repository](examples) and more examples are available in the `examples` folder of [Epsilon's website repository](https://github.com/eclipse-epsilon/epsilon-website/tree/main/mkdocs/docs/playground/examples).
@@ -74,25 +74,8 @@ Your `examples` folder should contain an `examples.json` file with at least one
74
74
If you would like to use only the backend services and replace the front-end altogether, you can start an instance using the following command, replacing `<front-end-folder-absolute-path>` with the **absolute** path of your custom front-end folder.
75
75
76
76
```shell
77
-
docker run -p 8000:80 -v <front-end-folder-absolute-path>:/etc/nginx/html playground:latest
77
+
docker run -p 8000:80 -v <front-end-folder-absolute-path>:/etc/nginx/html playground-docker:micronaut
78
78
```
79
79
Your front-end folder should contain an `index.html` file. A minimal alternative front-end that you can use as a starting point for developing your custom front-end is available in the `miniground` folder of [this repository](miniground).
80
80
81
81
Alternatively, you may want to use the [Docker image for the Micronaut-based backend](https://github.com/epsilonlabs/playground-micronaut/pkgs/container/playground-micronaut) directly, without using this image.
82
-
83
-
## Publish to Docker Hub
84
-
85
-
Run the following command to build a `linux/amd64` image (replace `x.y.z` with the actual version you wish to release)
0 commit comments