在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):bdunbar/docker-gradle开源软件地址(OpenSource Url):https://github.com/bdunbar/docker-gradle开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Gradle Executable ContainerThis docker image includes Oracle Java 7 and Gradle 2.1 configured with Gradle as the entrypoint. UsageBy defaut, running this image without any command will run Doing Something Actually UsefulTo run something more interesting, say docker run --rm -v /path/to/your/project:/app:rw niaquinto/gradle clean war PluginsOf course, you can use any command here, including those dependent on plugins. For example, if you project inlcudes the Jetty plugin (by including docker run --rm -p 8080:8080 -v /path/to/your/project:/app:rw niaquinto/gradle jettyRunWar You can find your app deployed at http://localhost:8080/app Changing the Default BehaviorSay you want # Use this image as a base
FROM niaquinto/gradle
MAINTAINER your-name <[email protected]>
# In case someone loses the Dockerfile
RUN rm -rf /etc/Dockerfile
ADD Dockerfile /etc/Dockerfile
# Add your desired user and group
RUN groupadd your-group-name
RUN useradd -s /bin/bash -m -d /app -g your-group-name your-user-name
# Set your desired user as default
USER your-user-name
# Set your default behavior
ENTRYPOINT ["gradle"]
CMD ["clean", "war"] Get the ImageTo build this image yourself, run... docker build github.com/niaquinto/docker-gradle Or, you can pull the image from the central docker repository by using... docker pull niaquinto/gradle |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论