diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/docker-pull | 11 | ||||
| -rwxr-xr-x | bin/lint | 1 | ||||
| -rwxr-xr-x | bin/omnibus | 31 | ||||
| -rwxr-xr-x | bin/setup | 2 |
4 files changed, 44 insertions, 1 deletions
diff --git a/bin/docker-pull b/bin/docker-pull new file mode 100755 index 0000000..aced17d --- /dev/null +++ b/bin/docker-pull @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +cd "$(dirname "$0")/.." + +IMAGE_NAME=${IMAGE_NAME:-$(basename "$PWD"):latest} +LATEST_IMAGE=registry.gitlab.com/gitlab-org/security-products/license-management:latest + +docker pull $LATEST_IMAGE +docker tag $LATEST_IMAGE "$IMAGE_NAME" @@ -8,5 +8,6 @@ shellcheck bin/* shellcheck config/files/.bashrc shellcheck config/files/.profile shellcheck config/*.sh +shellcheck config/scripts/**/* shellcheck run.sh bundle exec rubocop diff --git a/bin/omnibus b/bin/omnibus index 526b8d7..c46155c 100755 --- a/bin/omnibus +++ b/bin/omnibus @@ -11,30 +11,61 @@ case $1 in autoconf \ automake \ bison \ + bsdmainutils \ build-essential \ ca-certificates \ + clang \ cmake \ curl \ + default-libmysqlclient-dev \ fakeroot \ gettext \ git \ + gpg \ + libcairo2-dev \ + libcurl4-openssl-dev \ libdb-dev \ + libedit-dev \ + libexif-dev \ libffi-dev \ libgdbm-dev \ libgdbm6 \ + libgif-dev \ + libglib2.0-dev \ + libicu-dev \ + libjpeg-dev \ libncurses5-dev \ + libonig-dev \ + libpng-dev \ + libpq-dev \ + libreadline-dev \ libreadline6-dev \ + libsqlite3-dev \ libssl-dev \ + libtiff-dev \ libtool \ libtool-bin \ + libxml2-dev \ libyaml-dev \ + libzip-dev \ + locate \ maven \ + mono-complete \ + openssl \ + pkg-config \ + python \ python3 \ + re2c \ ruby \ ruby-dev \ + unzip \ zlib1g-dev \ zstd + curl -s https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py + python /tmp/get-pip.py + python3 /tmp/get-pip.py + gem install bundler bundle install ;; @@ -7,7 +7,7 @@ cd "$(dirname "$0")/.." export PATH="/builds/gitlab-org/security-products/license-management/exe:/opt/gitlab/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" if [ ! -f /usr/sbin/haproxy ] && command -v apt-get; then - apt-get update -y && apt-get install -y --no-install-recommends haproxy + apt-get update -y && apt-get install -y --no-install-recommends git haproxy fi [[ -z "$CI_JOB_ID" ]] && enable_dev_mode |
