Skip to content

Commit

Permalink
Rename repository to playground-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Dec 3, 2024
1 parent 71e0583 commit c055481
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ MICRONAUT_SERVER_PORT=8010 ./gradlew run

### From the Docker image

This project publishes [a Docker image](https://github.com/epsilonlabs/playground-micronaut/pkgs/container/playground-micronaut) to the Github Container Registry from its `main` branch.
This project publishes [a Docker image](https://github.com/epsilonlabs/playground-backend/pkgs/container/playground-backend) to the Github Container Registry from its `main` branch.

To run this image while exposing its endpoints on the 8010 port (e.g., to avoid the 8080 port used by the MDENet Education Platform), run:

```bash
docker run --rm -p 8010:8080 ghcr.io/epsilonlabs/playground-micronaut:0.1
docker run --rm -p 8010:8080 ghcr.io/epsilonlabs/playground-backend:ep-tool-server
```

## Deploying to Google Cloud Functions
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ publishing {
repositories {
maven {
name = "GithubPackages"
url = "https://maven.pkg.github.com/epsilonlabs/playground-micronaut"
url = "https://maven.pkg.github.com/epsilonlabs/playground-backend"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
version = "0.0",
description = "Core functions for running Epsilon scripts and rendering models",
license = @License(name = "Eclipse Public License 2.0", url = "https://www.eclipse.org/legal/epl-2.0/"),
contact = @Contact(url = "https://github.com/epsilonlabs/playground-micronaut", name = "Epsilon Developers")
contact = @Contact(url = "https://github.com/epsilonlabs/playground-backend", name = "Epsilon Developers")
)
)
public class Application {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
micronaut.application.name=playground-micronaut
micronaut.application.name=playground-backend

micronaut.server.cors.enabled=true
micronaut.server.cors.configurations.web.max-age=3600
Expand Down
4 changes: 2 additions & 2 deletions ep-tool-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tasks.named("dockerfile") {
}

tasks.named("dockerBuild") {
images = ["ghcr.io/epsilonlabs/playground-micronaut:ep-tool-server"]
images = ["ghcr.io/epsilonlabs/playground-backend:ep-tool-server"]
}

// Webpack for syntax highlighting
Expand Down Expand Up @@ -87,7 +87,7 @@ publishing {
repositories {
maven {
name = "GithubPackages"
url = "https://maven.pkg.github.com/epsilonlabs/playground-micronaut"
url = "https://maven.pkg.github.com/epsilonlabs/playground-backend"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
version = "0.0",
description = "Additional functions only needed by Playground HTTP server",
license = @License(name = "Eclipse Public License 2.0", url = "https://www.eclipse.org/legal/epl-2.0/"),
contact = @Contact(url = "https://github.com/epsilonlabs/playground-micronaut", name = "Epsilon Developers")
contact = @Contact(url = "https://github.com/epsilonlabs/playground-backend", name = "Epsilon Developers")
)
)
public class Application {
Expand Down
2 changes: 1 addition & 1 deletion ep-tool-server/src/main/resources/mdenet_tool.egl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tool":
{
"id": "epsilon",
"name": "playground-micronaut",
"name": "playground-backend",
"version": "0.1.0",
"author": "Epsilon Labs",
"homepage": "https://eclipse.dev/epsilon/",
Expand Down
6 changes: 3 additions & 3 deletions gcp-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ cd build/libs
Now run:

```bash
$ gcloud beta functions deploy playground-micronaut --entry-point io.micronaut.gcp.function.http.HttpFunction --runtime java17 --trigger-http
$ gcloud beta functions deploy playground-backend --entry-point io.micronaut.gcp.function.http.HttpFunction --runtime java17 --trigger-http
```

Choose unauthenticated access if you don't need auth.

To obtain the trigger URL do the following:

```bash
YOUR_HTTP_TRIGGER_URL=$(gcloud functions describe playground-micronaut --format='value(httpsTrigger.url)')
YOUR_HTTP_TRIGGER_URL=$(gcloud functions describe playground-backend --format='value(httpsTrigger.url)')
```

You can then use this variable to test the function invocation:

```bash
curl -i $YOUR_HTTP_TRIGGER_URL/playground-micronaut
curl -i $YOUR_HTTP_TRIGGER_URL/playground-backend
```

- [Shadow Gradle Plugin](https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

rootProject.name="playground-micronaut"
rootProject.name="playground-backend"

include 'core'
include 'ep-tool-server'
Expand Down

0 comments on commit c055481

Please sign in to comment.