Comments (7)
Thanks! That file is not necessary anymore because the Gradle/Maven plugins take care of it.
from micronaut-creating-first-graal-app.
@ilopmar - When Dockerfile is removed, how can I reference this project in a docker-compose.yml without publishing to registry?
from micronaut-creating-first-graal-app.
The Gradle plugin can generate the Dockerfile
for you on-the-fly: https://github.com/micronaut-projects/micronaut-gradle-plugin#micronaut-application-plugin
If you need it or need to tweak something, generate it (./gradlew dockerfile
), copy it to the root directory of the project and use it.
from micronaut-creating-first-graal-app.
Thanks @ilopmar for a quick response.
I am in learning stage. I did check this option and it uses openjdk alpine. I wanted to get hold of the Native file. Native docker file passes all the referenced jars to native-image. Hence cannot keep it as static. Any other way which you would recommend?
I am trying to create a docker-compose.yml and add db and other images and reference the mirconaut app inside it. something like https://github.com/micronaut-projects/micronaut-examples/blob/master/petstore/docker-compose.yml
from micronaut-creating-first-graal-app.
Currently I am having only one app. I created a .sh file and added the below
echo "Generating native docker file"
./gradlew dockerfileNative
echo
echo "running docker compose up"
docker-compose up
and in docker-compose.yml , I am referencing the dockerfile generated inside the builder folder like below
depends_on:
- db
build:
context: .
dockerfile: build/docker/DockerfileNative
from micronaut-creating-first-graal-app.
I'm sorry but I don't have enough docker-compose experience to help you with this.
from micronaut-creating-first-graal-app.
@ilopmar Thank you.
from micronaut-creating-first-graal-app.
Related Issues (9)
- Update to GraalVM 1.0-rc7 HOT 3
- gradle build of 'initial' project fails at 'Could not find io.micronaut:bom:1.0.0-SNAPSHOT.'
- Update to Micronaut 2.0 HOT 1
- OutOfMemory Error when building the project with Docker HOT 3
- The `complete` app does not build HOT 2
- Gradle assemble fails on Windows 10 WSL HOT 1
- Native image generation fails on Mac OSX HOT 2
- @Introspection for kotlin data classes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micronaut-creating-first-graal-app.