summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/docker-pull11
-rwxr-xr-xbin/lint1
-rwxr-xr-xbin/omnibus31
-rwxr-xr-xbin/setup2
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"
diff --git a/bin/lint b/bin/lint
index dada38c..8a283f4 100755
--- a/bin/lint
+++ b/bin/lint
@@ -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
;;
diff --git a/bin/setup b/bin/setup
index 03f0938..ada231f 100755
--- a/bin/setup
+++ b/bin/setup
@@ -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