This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pick up master changes * Move PHP stack to PHP 7.0 * Add contributing guide * Add contributing guide * Fix jdk and vertx * Contribute guide * Remove commented instructions
- Loading branch information
Eugene Ivantsov
authored
Feb 2, 2017
1 parent
c01d7a6
commit 94896d7
Showing
36 changed files
with
158 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# PRs for new stacks | ||
|
||
## Naming conventions for repositories | ||
|
||
Folder names in `/recipes` are repository name. So, if you want your image to be eclipse/my-image, create `/recipes/my-image` directory with Dockerfile in it. | ||
|
||
## Naming conventions for tags | ||
|
||
By default all stack images have `:latest` tag. If your repo should have several tags, create a subdirectory in your repo directory, say, `/recipes/my-image/mytag` with a Dockerfile in it. | ||
|
||
Your repo will be built as `eclipse/my-image:mytag`. | ||
|
||
`:latest` tag will be added by default, if your repo directory does not have any sub-dirs. | ||
|
||
## Base Images | ||
|
||
We recommend that you inherit from `eclipse/stack-base:ubuntu` or `eclipse/stack-base:debian` in your images. These base images have all runtime dependencies for workspace agent and some helpful utilities. | ||
|
||
## Entrypoint and CMD | ||
|
||
We start sshd in the `ENTRYPOINT` and our CMD is `tail -f /dev/null`. If you inherit from `eclipse/stack-base` and do not need to launch any services as the container starts, there is no need to override ENTRYPOINT or CMD. | ||
|
||
If you override CMD, make sure it is a non-terminating command, otherwise your container will be stopped juast after CMD is executed. | ||
|
||
# Repositories to issue PRs | ||
|
||
Once a PR is issued in `che-dockerfiles` repository, another PR has to be created - this time to add your stack to Stack Library in Eclipse Che. Such a PR is optional. | ||
|
||
Just having your repo built in an Eclipse DockerHub account does not mean the stack will show up in Stack Library. Take a look [Stacks in Che](https://github.com/eclipse/che/blob/master/ide/che-core-ide-stacks/src/main/resources/stacks.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
docker login -u riuvshin -p 80b1iXVCBomYVmyAmvV2 | ||
# if you want to push images, login as user with access to eclipse org hub.docker.com account | ||
cd $(pwd)/recipes/stack-base/debian | ||
|
||
docker build -t eclipse/stack-base:debian . | ||
cd ../../.. | ||
cd $(pwd)/recipes/stack-base/ubuntu | ||
docker build -t eclipse/stack-base:ubuntu . | ||
cd ../../.. | ||
cd $(pwd)/recipes/debian_jdk8 | ||
docker build -t eclipse/debian_jdk8 . | ||
cd ../.. | ||
cd $(pwd)/recipes/ubuntu_jdk8 | ||
docker build -t eclipse/ubuntu_jdk8 . | ||
cd ../.. | ||
cd $(pwd)/recipes/ubuntu_python/2.7 | ||
docker build -t eclipse/ubuntu_python:2.7 . | ||
|
||
cd ../.. | ||
dir=$(find . -maxdepth 3 -mindepth 1 -type d -not -path '*/\.*' -exec bash -c 'cd "$0" && pwd' {} \;) | ||
|
||
for d in $dir | ||
do | ||
IMAGE=$(echo $d | sed 's/.*recipes\///' | awk -F'/' '{print $1}') | ||
TAG=$(echo $d | sed 's/.*recipes\///' | awk -F'/' '{print $2}') | ||
if [ -n "$TAG" ]; then | ||
TAG=$TAG | ||
else | ||
TAG="latest" | ||
fi | ||
cd $d | ||
if [ ! -f $d/Dockerfile ]; then | ||
echo "No Dockerfile Found. Skipping..." | ||
|
||
else | ||
docker build -t eclipse/"$IMAGE":"$TAG" . | ||
if [ "$?" != "0" ]; then | ||
echo "Unable to build image: $IMAGE" | ||
exit $? | ||
else | ||
echo "$IMAGE:$TAG successfully built" | ||
docker push eclipse/"$IMAGE":"$TAG" | ||
fi | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
# Abel García Dorta <[email protected]> | ||
# Roger S <[email protected]> | ||
|
||
FROM eclipse/ubuntu_jre | ||
FROM eclipse/stack-base:ubuntu | ||
|
||
MAINTAINER [email protected] | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get install apt-transport-https -y && \ | ||
echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" | sudo tee --append /etc/apt/sources.list.d/dotnetdev.list && \ | ||
echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" | sudo tee --append /etc/apt/sources.list.d/dotnetdev.list && \ | ||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893 &&\ | ||
sudo apt-get update && \ | ||
sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177 -y && \ | ||
|
@@ -30,5 +30,3 @@ RUN sudo npm install -g generator-aspnet | |
ENV LANG C.UTF-8 | ||
EXPOSE 5000 | ||
LABEL che:server:5000:ref=dot.net.server che:server:5000:protocol=http | ||
WORKDIR /projects | ||
CMD tail -f /dev/null |
Oops, something went wrong.