Skip to content

Commit 1f03f41

Browse files
svenefftingemeysholdt
authored andcommitted
gitpod config
1 parent 30aab0a commit 1f03f41

File tree

2 files changed

+62
-6
lines changed

2 files changed

+62
-6
lines changed

.gitpod.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
image:
2-
file: ./.devcontainer/Dockerfile
1+
image: gitpod/workspace-full
2+
33
tasks:
4-
- before: sudo usermod -a -G sdkman gitpod && sudo usermod -a -G nvm gitpod && sudo chown -R gitpod /usr/local/sdkman /usr/local/share/nvm
5-
- init: ./mvnw install
4+
- init: ./mvnw clean install -U -DskipTests
5+
command: ./mvnw spring-boot:run
6+
name: Run PetClinic app
7+
8+
ports:
9+
- port: 8080
10+
onOpen: open-preview
11+
612
vscode:
713
extensions:
8-
- vscjava.vscode-java-pack
9-
- redhat.vscode-xml
14+
- pivotal.vscode-spring-boot
15+
- vscjava.vscode-java-pack
16+
17+
jetbrains:
18+
intellij:
19+
plugins:
20+
- com.haulmont.jpab
21+
prebuilds:
22+
version: both

readme-gitpod.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Spring PetClinic Sample application [![setup automated](https://img.shields.io/badge/Gitpod-ready_to_code-orange?logo=gitpod)](https://gitpod.io/#https://github.com/gitpod-io/spring-petclinic)
2+
3+
[Petclinic](https://github.com/spring-projects/spring-petclinic) is a [Spring Boot](https://spring.io/guides/gs/spring-boot/) application built using [Maven](https://spring.io/guides/gs/maven/).
4+
5+
## Table of Contents
6+
7+
- [Run petclinic on Gitpod](#run-petclinic-on-gitpod)
8+
- [Get Started With Your Own Project](#get-started-with-your-own-project)
9+
- [Community support](#community-support)
10+
11+
## Run petclinic on Gitpod
12+
13+
Start coding in a [ready-to-code, cloud development environment](https://www.gitpod.io)
14+
15+
Setup Gitpod integration with Jetbrains Gateway using the instructions given in this [doc](https://www.gitpod.io/docs/ides-and-editors/intellij).
16+
17+
Click the button below to start a new workspace on Gitpod which will automatically open the workspace in IntelliJ IDEA through JetBrains Gateway.
18+
19+
20+
<a href="https://gitpod.io/#https://github.com/gitpod-io/spring-petclinic" style="padding: 10px;">
21+
<img src="https://gitpod.io/button/open-in-gitpod.svg" width="150" alt="Push" align="center">
22+
</a>
23+
24+
25+
Or you can run it from Maven directly using the Spring Boot Maven plugin. If you do this it will pick up changes that you make in the project immediately (changes to Java source files require a compile as well - most people use an IDE for this):
26+
27+
```
28+
./mvnw spring-boot:run
29+
```
30+
31+
## Get Started With Your Own Project
32+
33+
To get started with Spring Boot on Gitpod, add a [`.gitpod.yml`](./.gitpod.yml) file which contains the configuration to improve the developer experience on Gitpod. To learn more, please see the [Getting Started](https://www.gitpod.io/docs/getting-started) documentation.
34+
35+
## Community Support
36+
37+
For any help refer to [Gitpod documentation](https://gitpod.io/workspaces). If you have any additonal questions, you can use one of these channels:
38+
39+
[![Discord](https://img.shields.io/discord/816244985187008514?color=7289da&logo=Discord&style=for-the-badge)](https://discord.com/channels/816244985187008514/903225840660279296)
40+
41+
[![GitHub issues](https://img.shields.io/github/issues/gitpod-io/template-java-spring-boot-gradle?logo=Github&style=for-the-badge)](https://github.com/gitpod-io/spring-petclinic/issues)
42+
43+
[![Twitter Follow](https://img.shields.io/twitter/follow/gitpod?label=Gitpod&logo=twitter&style=for-the-badge)](https://twitter.com/gitpod)

0 commit comments

Comments
 (0)