Commit fc767938 authored by Noah Prail's avatar Noah Prail

Initial commit

parents
Pipeline #1386 passed with stage
in 15 seconds
image: docker:latest
build:
stage: build
tags:
- docker-shell
before_script:
- docker info
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- docker push "$CI_REGISTRY_IMAGE:latest"
except:
- tags
build-tag:
stage: build
tags:
- docker-shell
before_script:
- docker info
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- tags
FROM openjdk:8-jdk
MAINTAINER Filiosoft, LLC <Team@Filiosoft.com>
ENV NODE_VERSION 8
RUN apt-get update && \
apt-get install --no-install-recommends -y apt-transport-https && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
apt-get install --no-install-recommends -y nodejs yarn && \
npm i -g npx && \
apt-get -y autoremove && \
apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/*
MIT License
Copyright (c) 2017 Filiosoft, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# JDK with Node.js
Java JDK 8 with Node.js 8 Image for e.g. GitLab CI Runners.
[![Docker Pulls](https://img.shields.io/docker/pulls/filiosoft/jdk-node.svg?style=flat-square)](https://gitlab.filiosoft.com/docker/jdk-node/container_registry)
### based on [openjdk:8-jdk](https://hub.docker.com/_/openjdk/)
----
### Pull from Docker Hub
```
docker pull registry.filiosoft.com/docker/jdk-node:latest
```
### Build from GitHub
```
docker build -t registry.filiosoft.com/docker/jdk-node https://gitlab.filiosoft.com/docker/jdk-node
```
### Run image
```
docker run -it registry.filiosoft.com/docker/jdk-node bash
```
### Use as base image
```Dockerfile
FROM registry.filiosoft.com/docker/jdk-node:latest
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment