Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
d0d3e15922 | |||
9a845b8ec7 | |||
75cc86d69f | |||
9f872eb376 | |||
15165235fd | |||
9e23bf4811 | |||
6bf5730895 | |||
0c733d3a90 | |||
1007880f8c | |||
4ec2503671 |
@ -1,3 +1,4 @@
|
|||||||
|
# gitzone docker
|
||||||
image: hosttoday/ht-docker-dbase:latest
|
image: hosttoday/ht-docker-dbase:latest
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
@ -7,6 +8,7 @@ stages:
|
|||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- trigger
|
- trigger
|
||||||
|
- pages
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm uninstall -g npmci
|
- npm uninstall -g npmci
|
||||||
@ -52,3 +54,18 @@ trigger:
|
|||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- priv
|
- priv
|
||||||
|
|
||||||
|
pages:
|
||||||
|
image: hosttoday/ht-docker-node:npmci
|
||||||
|
stage: pages
|
||||||
|
script:
|
||||||
|
- npmci command yarn global add npmpage
|
||||||
|
- npmci command npmpage
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
12
Dockerfile
12
Dockerfile
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# important environment variables
|
# important environment variables
|
||||||
ENV NODE_VERSION_LTS="6.9.1" NODE_VERSION_STABLE="7.1.0" NVM_DIR="/usr/local/nvm"
|
ENV NODE_VERSION_LTS="6.10.0" NODE_VERSION_STABLE="7.7.2" NVM_DIR="/usr/local/nvm"
|
||||||
|
|
||||||
# Set debconf to run non-interactively and install packages
|
# Set debconf to run non-interactively and install packages
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||||
@ -26,12 +26,4 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
&& rm -r /var/lib/apt/lists/*
|
&& rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install nvm with node and npm
|
# Install nvm with node and npm
|
||||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash \
|
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
|
||||||
&& bash -c "source $NVM_DIR/nvm.sh \
|
|
||||||
&& nvm install $NODE_VERSION_STABLE \
|
|
||||||
&& nvm alias default $NODE_VERSION_STABLE \
|
|
||||||
&& nvm use default \
|
|
||||||
&& npm install -g npm"
|
|
||||||
|
|
||||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
|
||||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmts
|
FROM hosttoday/ht-docker-node:stable
|
||||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 \
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 \
|
||||||
&& echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list \
|
&& echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest
|
FROM hosttoday/ht-docker-node:stable
|
||||||
RUN npm install -g npmci
|
RUN npm install -g npmci
|
@ -1,2 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmci
|
|
||||||
RUN npm install -g npmdeploy
|
|
@ -1,5 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmts
|
|
||||||
RUN npmci install stable && npmci command npm install -g npmpage && npmci command npmpage -v \
|
|
||||||
&& npmci install legacy && npmci command npm install -g npmpage && npmci command npmpage -v \
|
|
||||||
&& npmci install lts && npmci command npm install -g npmpage && npmci command npmpage -v \
|
|
||||||
&& npmci clean
|
|
@ -1,5 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmci
|
|
||||||
RUN npmci install stable && npmci command npm install -g npm npmts && npmci command npmts -v \
|
|
||||||
&& npmci install legacy && npmci command npm install -g npm npmts && npmci command npmts -v \
|
|
||||||
&& npmci install lts && npmci command npm install -g npm npmts && npmci command npmts -v \
|
|
||||||
&& npmci clean
|
|
@ -1 +1,10 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest
|
FROM hosttoday/ht-docker-node:latest
|
||||||
|
|
||||||
|
RUN bash -c "source $NVM_DIR/nvm.sh \
|
||||||
|
&& nvm install $NODE_VERSION_STABLE \
|
||||||
|
&& nvm alias default $NODE_VERSION_STABLE \
|
||||||
|
&& nvm use default \
|
||||||
|
&& npm install -g npm"
|
||||||
|
|
||||||
|
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
||||||
|
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH
|
||||||
|
1
node_modules/.yarn-integrity
generated
vendored
Normal file
1
node_modules/.yarn-integrity
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
549854b8a60607db81d4c58008d59f812d744acba026266f380acd942941356a
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-node",
|
"name": "ht-docker-node",
|
||||||
"version": "4.3.8",
|
"version": "4.3.13",
|
||||||
"description": "docker image with nodejs with shipzone.io support",
|
"description": "docker image with nodejs with shipzone.io support",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,9 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
yarn -v
|
||||||
# test availability of node and npm
|
|
||||||
npm -v
|
|
||||||
node -v
|
|
||||||
|
|
||||||
# test yarn
|
|
||||||
yarn global add npmts
|
|
||||||
npmts -v
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
npmci install stable
|
|
||||||
npmci command npmts -v
|
|
||||||
npmci install lts
|
|
||||||
npmci command npmts -v
|
|
||||||
npmci install legacy
|
|
||||||
npmci command npmts -v
|
|
3
test/test_stable.sh
Normal file
3
test/test_stable.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# test yarn
|
||||||
|
yarn global add npmts
|
||||||
|
npmts -v
|
Reference in New Issue
Block a user