Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
d0d3e15922 | |||
9a845b8ec7 | |||
75cc86d69f | |||
9f872eb376 | |||
15165235fd | |||
9e23bf4811 | |||
6bf5730895 | |||
0c733d3a90 | |||
1007880f8c | |||
4ec2503671 | |||
b1814a60d5 | |||
aed0fee59f | |||
fc53a7e3f0 | |||
6ee919ac34 | |||
1b8680edff | |||
67f4456073 | |||
b2835bd220 | |||
a0a2cc2eda | |||
e8c24d504c | |||
866346a0a5 | |||
04ea46f681 | |||
cd858ae9fa | |||
dc28ada99a | |||
09c78e9577 |
@ -1,4 +1,5 @@
|
||||
image: hosttoday/ht-docker-dbase
|
||||
# gitzone docker
|
||||
image: hosttoday/ht-docker-dbase:latest
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
@ -7,6 +8,7 @@ stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
|
||||
before_script:
|
||||
- npm uninstall -g npmci
|
||||
@ -27,9 +29,6 @@ test:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test docker
|
||||
only:
|
||||
- tags
|
||||
- triggers
|
||||
tags:
|
||||
- lossless
|
||||
- priv
|
||||
@ -55,3 +54,18 @@ trigger:
|
||||
tags:
|
||||
- lossless
|
||||
- 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
|
||||
|
16
Dockerfile
16
Dockerfile
@ -1,7 +1,7 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# important environment variables
|
||||
ENV NODE_VERSION_LTS="4.4.7" NODE_VERSION_STABLE="6.3.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
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||
@ -18,16 +18,12 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
openssl \
|
||||
python \
|
||||
rsync \
|
||||
&& 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 \
|
||||
&& apt-get update \
|
||||
&& apt-get install yarn -y \
|
||||
&& apt-get clean \
|
||||
&& rm -r /var/lib/apt/lists/*
|
||||
|
||||
# Install nvm with node and npm
|
||||
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
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
|
||||
|
5
Dockerfile_mongo
Normal file
5
Dockerfile_mongo
Normal file
@ -0,0 +1,5 @@
|
||||
FROM hosttoday/ht-docker-node:stable
|
||||
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 \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y mongodb-org
|
@ -1,2 +1,2 @@
|
||||
FROM hosttoday/ht-docker-node:latest
|
||||
FROM hosttoday/ht-docker-node:stable
|
||||
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
|
||||
|
||||
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
|
||||
|
@ -27,4 +27,4 @@ RUN npmci install [node_version_number] // this installs node using node and set
|
||||
* **:npmci** - npmci preinstalled
|
||||
* **:npmts** - npmci + npmts preinstalled
|
||||
* **:npmpage** - npmci + npmts + npmpage preinstalled
|
||||
* **:python3** - like :latest, but with python3 as standard python version
|
||||
* **:mongo** - npmci + npmts + mongo
|
||||
|
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",
|
||||
"version": "4.3.5",
|
||||
"version": "4.3.13",
|
||||
"description": "docker image with nodejs with shipzone.io support",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -1,3 +1,2 @@
|
||||
#!/bin/sh
|
||||
npm -v
|
||||
node -v
|
||||
yarn -v
|
||||
|
@ -1 +1,9 @@
|
||||
# check if npmci is available
|
||||
npmci -v
|
||||
|
||||
# check if we can use lts
|
||||
npmci install lts
|
||||
|
||||
# check if yarn picks it up
|
||||
npmci command yarn global add npmts
|
||||
npmci command 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