Merge branch 'cherry-pick-ecd49e82' into 'master'
Update templates for 9.3 See merge request !12461
This commit is contained in:
commit
471a40ace1
31 changed files with 234 additions and 34 deletions
14
vendor/Dockerfile/Binary-alpine.Dockerfile
vendored
Normal file
14
vendor/Dockerfile/Binary-alpine.Dockerfile
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
# This Dockerfile installs a compiled binary into a bare system.
|
||||
# You must either commit your compiled binary into source control (not recommended)
|
||||
# or build the binary first as part of a CI/CD pipeline.
|
||||
|
||||
FROM alpine:3.5
|
||||
|
||||
# We'll likely need to add SSL root certificates
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
# Change `app` to whatever your binary is called
|
||||
Add app .
|
||||
CMD ["./app"]
|
17
vendor/Dockerfile/Binary-scratch.Dockerfile
vendored
Normal file
17
vendor/Dockerfile/Binary-scratch.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# This Dockerfile installs a compiled binary into an image with no system at all.
|
||||
# You must either commit your compiled binary into source control (not recommended)
|
||||
# or build the binary first as part of a CI/CD pipeline.
|
||||
# Your binary must be statically compiled with no dynamic dependencies on system libraries.
|
||||
# e.g. for Docker:
|
||||
# CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM scratch
|
||||
|
||||
# Since we started from scratch, we'll likely need to add SSL root certificates
|
||||
ADD /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
# Change `app` to whatever your binary is called
|
||||
Add app .
|
||||
CMD ["./app"]
|
11
vendor/Dockerfile/Binary.Dockerfile
vendored
Normal file
11
vendor/Dockerfile/Binary.Dockerfile
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
# This Dockerfile installs a compiled binary into a bare system.
|
||||
# You must either commit your compiled binary into source control (not recommended)
|
||||
# or build the binary first as part of a CI/CD pipeline.
|
||||
|
||||
FROM buildpack-deps:jessie
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
# Change `app` to whatever your binary is called
|
||||
Add app .
|
||||
CMD ["./app"]
|
17
vendor/Dockerfile/Golang-alpine.Dockerfile
vendored
Normal file
17
vendor/Dockerfile/Golang-alpine.Dockerfile
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM golang:1.8-alpine AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
RUN go-wrapper download
|
||||
RUN go build -v
|
||||
|
||||
FROM alpine:3.5
|
||||
|
||||
# We'll likely need to add SSL root certificates
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
COPY --from=builder /usr/src/app/app .
|
||||
CMD ["./app"]
|
20
vendor/Dockerfile/Golang-scratch.Dockerfile
vendored
Normal file
20
vendor/Dockerfile/Golang-scratch.Dockerfile
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM golang:1.8-alpine AS builder
|
||||
|
||||
# We'll likely need to add SSL root certificates
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
RUN go-wrapper download
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -v -a -installsuffix cgo -o app .
|
||||
|
||||
FROM scratch
|
||||
|
||||
# Since we started from scratch, we'll copy the SSL root certificates from the builder
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
COPY --from=builder /usr/src/app/app .
|
||||
CMD ["./app"]
|
14
vendor/Dockerfile/Golang.Dockerfile
vendored
Normal file
14
vendor/Dockerfile/Golang.Dockerfile
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM golang:1.8 AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
RUN go-wrapper download
|
||||
RUN go build -v
|
||||
|
||||
FROM buildpack-deps:jessie
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
COPY --from=builder /usr/src/app/app .
|
||||
CMD ["./app"]
|
14
vendor/Dockerfile/Node-alpine.Dockerfile
vendored
Normal file
14
vendor/Dockerfile/Node-alpine.Dockerfile
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM node:7.9-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
ARG NODE_ENV
|
||||
ENV NODE_ENV $NODE_ENV
|
||||
COPY package.json /usr/src/app/
|
||||
RUN npm install && npm cache clean
|
||||
COPY . /usr/src/app
|
||||
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
# replace this with your application's default port
|
||||
EXPOSE 8888
|
14
vendor/Dockerfile/Node.Dockerfile
vendored
Normal file
14
vendor/Dockerfile/Node.Dockerfile
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM node:7.9
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
ARG NODE_ENV
|
||||
ENV NODE_ENV $NODE_ENV
|
||||
COPY package.json /usr/src/app/
|
||||
RUN npm install && npm cache clean
|
||||
COPY . /usr/src/app
|
||||
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
# replace this with your application's default port
|
||||
EXPOSE 8888
|
24
vendor/Dockerfile/Ruby-alpine.Dockerfile
vendored
Normal file
24
vendor/Dockerfile/Ruby-alpine.Dockerfile
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM ruby:2.4-alpine
|
||||
|
||||
# Edit with nodejs, mysql-client, postgresql-client, sqlite3, etc. for your needs.
|
||||
# Or delete entirely if not needed.
|
||||
RUN apk --no-cache add nodejs postgresql-client
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY Gemfile Gemfile.lock /usr/src/app/
|
||||
RUN bundle install
|
||||
|
||||
COPY . /usr/src/app
|
||||
|
||||
# For Sinatra
|
||||
#EXPOSE 4567
|
||||
#CMD ["ruby", "./config.rb"]
|
||||
|
||||
# For Rails
|
||||
EXPOSE 3000
|
||||
CMD ["rails", "server"]
|
27
vendor/Dockerfile/Ruby.Dockerfile
vendored
Normal file
27
vendor/Dockerfile/Ruby.Dockerfile
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
FROM ruby:2.4
|
||||
|
||||
# Edit with nodejs, mysql-client, postgresql-client, sqlite3, etc. for your needs.
|
||||
# Or delete entirely if not needed.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
nodejs \
|
||||
postgresql-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY Gemfile Gemfile.lock /usr/src/app/
|
||||
RUN bundle install -j $(nproc)
|
||||
|
||||
COPY . /usr/src/app
|
||||
|
||||
# For Sinatra
|
||||
#EXPOSE 4567
|
||||
#CMD ["ruby", "./config.rb"]
|
||||
|
||||
# For Rails
|
||||
EXPOSE 3000
|
||||
CMD ["rails", "server", "-b", "0.0.0.0"]
|
4
vendor/gitignore/Global/Archives.gitignore
vendored
4
vendor/gitignore/Global/Archives.gitignore
vendored
|
@ -12,11 +12,11 @@
|
|||
*.lzma
|
||||
*.cab
|
||||
|
||||
#packing-only formats
|
||||
# Packing-only formats
|
||||
*.iso
|
||||
*.tar
|
||||
|
||||
#package management formats
|
||||
# Package management formats
|
||||
*.dmg
|
||||
*.xpi
|
||||
*.gem
|
||||
|
|
5
vendor/gitignore/Global/JEnv.gitignore
vendored
Normal file
5
vendor/gitignore/Global/JEnv.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# JEnv local Java version configuration file
|
||||
.java-version
|
||||
|
||||
# Used by previous versions of JEnv
|
||||
.jenv-version
|
10
vendor/gitignore/Global/SublimeText.gitignore
vendored
10
vendor/gitignore/Global/SublimeText.gitignore
vendored
|
@ -1,16 +1,16 @@
|
|||
# cache files for sublime text
|
||||
# Cache files for Sublime Text
|
||||
*.tmlanguage.cache
|
||||
*.tmPreferences.cache
|
||||
*.stTheme.cache
|
||||
|
||||
# workspace files are user-specific
|
||||
# Workspace files are user-specific
|
||||
*.sublime-workspace
|
||||
|
||||
# project files should be checked into the repository, unless a significant
|
||||
# proportion of contributors will probably not be using SublimeText
|
||||
# Project files should be checked into the repository, unless a significant
|
||||
# proportion of contributors will probably not be using Sublime Text
|
||||
# *.sublime-project
|
||||
|
||||
# sftp configuration file
|
||||
# SFTP configuration file
|
||||
sftp-config.json
|
||||
|
||||
# Package control specific files
|
||||
|
|
4
vendor/gitignore/Global/Vagrant.gitignore
vendored
4
vendor/gitignore/Global/Vagrant.gitignore
vendored
|
@ -1 +1,5 @@
|
|||
# General
|
||||
.vagrant/
|
||||
|
||||
# Log files (if you are creating logs in debug mode, uncomment this)
|
||||
# *.logs
|
||||
|
|
10
vendor/gitignore/Global/Vim.gitignore
vendored
10
vendor/gitignore/Global/Vim.gitignore
vendored
|
@ -1,12 +1,14 @@
|
|||
# swap
|
||||
# Swap
|
||||
[._]*.s[a-v][a-z]
|
||||
[._]*.sw[a-p]
|
||||
[._]s[a-v][a-z]
|
||||
[._]sw[a-p]
|
||||
# session
|
||||
|
||||
# Session
|
||||
Session.vim
|
||||
# temporary
|
||||
|
||||
# Temporary
|
||||
.netrwhist
|
||||
*~
|
||||
# auto-generated tag files
|
||||
# Auto-generated tag files
|
||||
tags
|
||||
|
|
3
vendor/gitignore/Global/Windows.gitignore
vendored
3
vendor/gitignore/Global/Windows.gitignore
vendored
|
@ -3,6 +3,9 @@ Thumbs.db
|
|||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
|
||||
# Dump file
|
||||
*.stackdump
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
|
|
1
vendor/gitignore/Global/macOS.gitignore
vendored
1
vendor/gitignore/Global/macOS.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
# General
|
||||
*.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
|
8
vendor/gitignore/Python.gitignore
vendored
8
vendor/gitignore/Python.gitignore
vendored
|
@ -8,7 +8,6 @@ __pycache__/
|
|||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
|
@ -43,7 +42,7 @@ htmlcov/
|
|||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
*.cover
|
||||
.hypothesis/
|
||||
|
||||
# Translations
|
||||
|
@ -79,11 +78,10 @@ celerybeat-schedule
|
|||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# dotenv
|
||||
# Environments
|
||||
.env
|
||||
|
||||
# virtualenv
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
|
||||
|
|
8
vendor/gitignore/Qt.gitignore
vendored
8
vendor/gitignore/Qt.gitignore
vendored
|
@ -12,6 +12,9 @@
|
|||
|
||||
# Qt-es
|
||||
|
||||
object_script.*.Release
|
||||
object_script.*.Debug
|
||||
*_plugin_import.cpp
|
||||
/.qmake.cache
|
||||
/.qmake.stash
|
||||
*.pro.user
|
||||
|
@ -26,6 +29,11 @@ ui_*.h
|
|||
Makefile*
|
||||
*build-*
|
||||
|
||||
|
||||
# Qt unit tests
|
||||
target_wrapper.*
|
||||
|
||||
|
||||
# QtCreator
|
||||
|
||||
*.autosave
|
||||
|
|
4
vendor/gitignore/SugarCRM.gitignore
vendored
4
vendor/gitignore/SugarCRM.gitignore
vendored
|
@ -6,7 +6,7 @@
|
|||
# the misuse of the repository as backup replacement.
|
||||
# For development the cache directory can be safely ignored and
|
||||
# therefore it is ignored.
|
||||
/cache/
|
||||
/cache/*
|
||||
!/cache/index.html
|
||||
# Ignore some files and directories from the custom directory.
|
||||
/custom/history/
|
||||
|
@ -22,6 +22,6 @@
|
|||
# Logs files can safely be ignored.
|
||||
*.log
|
||||
# Ignore the new upload directories.
|
||||
/upload/
|
||||
/upload/*
|
||||
!/upload/index.html
|
||||
/upload_backup/
|
||||
|
|
7
vendor/gitignore/VisualStudio.gitignore
vendored
7
vendor/gitignore/VisualStudio.gitignore
vendored
|
@ -42,6 +42,9 @@ TestResult.xml
|
|||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
|
@ -183,6 +186,7 @@ AppPackages/
|
|||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
|
@ -278,6 +282,9 @@ __pycache__/
|
|||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
|
|
4
vendor/gitlab-ci-yml/.gitlab-ci.yml
vendored
4
vendor/gitlab-ci-yml/.gitlab-ci.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
image: ruby:2.3-alpine
|
||||
image: ruby:2.4-alpine
|
||||
|
||||
test:
|
||||
script: ruby verify_templates.rb
|
||||
script: ./verify_templates.rb
|
||||
|
|
2
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: "crystallang/crystal:latest"
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
# services:
|
||||
# - mysql:latest
|
||||
# - redis:latest
|
||||
|
|
2
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: python:latest
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
services:
|
||||
- mysql:latest
|
||||
- postgres:latest
|
||||
|
|
8
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
vendored
8
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
vendored
|
@ -6,8 +6,8 @@ services:
|
|||
|
||||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum:]_.-' '-')
|
||||
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
|
||||
- docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE:CI_COMMIT_REF_SLUG" .
|
||||
- docker push "$CI_REGISTRY_IMAGE:CI_COMMIT_REF_SLUG"
|
||||
|
|
2
vendor/gitlab-ci-yml/Elixir.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Elixir.gitlab-ci.yml
vendored
|
@ -2,7 +2,7 @@ image: elixir:latest
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
services:
|
||||
- mysql:latest
|
||||
- redis:latest
|
||||
|
|
2
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: php:latest
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
services:
|
||||
- mysql:latest
|
||||
|
||||
|
|
2
vendor/gitlab-ci-yml/Nodejs.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Nodejs.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: node:latest
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
services:
|
||||
- mysql:latest
|
||||
- redis:latest
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# JBake https://jbake.org/ is a Java based, open source, static site/blog generator for developers & designers
|
||||
#
|
||||
# This yml works with jBake 2.4.0
|
||||
# This yml works with jBake 2.5.1
|
||||
# Feel free to change JBAKE_VERSION version
|
||||
#
|
||||
# HowTo at: https://jorge.aguilera.gitlab.io/howtojbake/
|
||||
|
@ -11,12 +11,12 @@
|
|||
image: java:8
|
||||
|
||||
variables:
|
||||
JBAKE_VERSION: 2.4.0
|
||||
JBAKE_VERSION: 2.5.1
|
||||
|
||||
|
||||
# We use SDKMan as tool for managing versions
|
||||
before_script:
|
||||
- apt-get update -qq && apt-get install -y -qq unzip
|
||||
- apt-get update -qq && apt-get install -y -qq unzip zip
|
||||
- curl -sSL https://get.sdkman.io | bash
|
||||
- echo sdkman_auto_answer=true > /root/.sdkman/etc/config
|
||||
- source /root/.sdkman/bin/sdkman-init.sh
|
||||
|
|
2
vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: "ruby:2.3"
|
|||
|
||||
# Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
services:
|
||||
- mysql:latest
|
||||
- redis:latest
|
||||
|
|
2
vendor/gitlab-ci-yml/Rust.gitlab-ci.yml
vendored
2
vendor/gitlab-ci-yml/Rust.gitlab-ci.yml
vendored
|
@ -4,7 +4,7 @@ image: "scorpil/rust:stable"
|
|||
|
||||
# Optional: Pick zero or more services to be used on all builds.
|
||||
# Only needed when using a docker container to run your tests in.
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
|
||||
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
|
||||
#services:
|
||||
# - mysql:latest
|
||||
# - redis:latest
|
||||
|
|
Loading…
Reference in a new issue