https://github.com/ddobrin/cloud-workstations-custom-image
Document how to prepare a custom image for Cloud Workstations - Start with JIT and Native Java
https://github.com/ddobrin/cloud-workstations-custom-image
Last synced: 4 months ago
JSON representation
Document how to prepare a custom image for Cloud Workstations - Start with JIT and Native Java
- Host: GitHub
- URL: https://github.com/ddobrin/cloud-workstations-custom-image
- Owner: ddobrin
- License: mit
- Created: 2022-11-07T16:05:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T21:27:56.000Z (almost 3 years ago)
- Last Synced: 2024-10-06T02:05:38.735Z (almost 2 years ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloud Workstations Customer Image
Document how to prepare a custom image for Cloud Workstations - Start with JIT and Native Java
## Build a costum Docker image with Java 17 and Oracle GraalVM 17.0.8+9.1 (latest LTS)
```shell
docker build . -t //workstations/custom-native:1.0.0
# Ex.:
docker build . -t us-central1-docker.pkg.dev/optimize-serverless-apps/workstations/custom-native:1.0.0
```
*Push the image to Artifact Registry*
```shell
docker push //workstations/custom-native:1.0.0
# Ex.:
docker push us-central1-docker.pkg.dev/optimize-serverless-apps/workstations/custom-native:1.0.0
```
## Build a costum Docker image with Java 20 and GraalVM 20.0.0)
Update the ```011_customize-user.sh``` by uncomenting the Java 20 environment variables
```shell
docker build . -f Dockerfile-Java20 -t //workstations/custom-native-20:1.0.0
# Ex.:
docker build . -f Dockerfile-Java20 -t us-central1-docker.pkg.dev/optimize-serverless-apps/workstations/custom-native-20:1.0.0
```
*Push the image to Artifact Registry*
```shell
docker push //workstations/custom-native-20:1.0.0
# Ex.:
docker push us-central1-docker.pkg.dev/optimize-serverless-apps/workstations/custom-native-20:1.0.0
```
*Configure the Cloud Workstations Configuration*
- [documentation](https://cloud.google.com/workstations)
- for Native Java images, allocate a larger size machine for increased performance