File tree Expand file tree Collapse file tree 17 files changed +181
-152
lines changed
Expand file tree Collapse file tree 17 files changed +181
-152
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,18 @@ jobs:
6262 command : |
6363 sudo ./deps/readies/bin/getpy3
6464 sudo ./deps/readies/bin/getdocker --just-enable-exp
65+ sudo usermod -aG docker $USER
6566 docker version
6667 docker login --username redisfab --password "$DOCKER_REDISFAB_PWD"
6768 - run :
6869 name : Build and publish
70+ shell : /bin/bash -l -eo pipefail
6971 command : |
7072 cd rmbuilder
7173 for nick in <<parameters.platforms>>; do
72- bash -l -c " make build X64=1 OSNICK=$nick"
74+ make build X64=1 OSNICK=$nick
7375 if [[ $CIRCLE_BRANCH == master ]]; then
74- bash -l -c " make publish X64=1 OSNICK=$nick"
76+ make publish X64=1 OSNICK=$nick
7577 fi
7678 done
7779 no_output_timeout : 30m
@@ -213,6 +215,7 @@ workflows:
213215 << : *not-on-integ-branch
214216 platforms : " bullseye"
215217 context : common
218+ force : " 1"
216219 - platform-vm-builder :
217220 name : integ-vm-builder
218221 << : *on-integ-branch
Original file line number Diff line number Diff line change 1+ /[0-9 ]* /
Original file line number Diff line number Diff line change 1+
2+ FROM debian:bullseye
3+
4+ ENV HUGO_VER=0.88.1
5+
6+ RUN apt-get update -qq
7+ RUN apt-get install -y ca-certificates wget curl rsync
8+
9+ RUN apt-get install -y python3-pip python3-yaml
10+ RUN python3 -m pip install --upgrade pip
11+
12+ RUN apt-get install -y nodejs npm
13+ RUN npm install -g npm
14+
15+ RUN wget -q -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VER}/hugo_extended_${HUGO_VER}_Linux-64bit.deb
16+ RUN dpkg -i /tmp/hugo.deb
Original file line number Diff line number Diff line change 1+
2+ FROM redisfab/hugo:latest
3+
4+ ADD . /build
5+ WORKDIR /build
6+ RUN cd website; npm install
7+
8+ RUN make init stack
9+ RUN make serve IP=0.0.0.0
10+
Original file line number Diff line number Diff line change 1+
2+ IMAGE =redisfab/hugo:latest
3+
4+ build :
5+ docker build -t $(IMAGE ) .
6+
7+ publish :
8+ docker push $(IMAGE )
Original file line number Diff line number Diff line change 1+ # docker run -it --user 1000:1000 IMAGE bash
2+
3+ ARG USERID=1000
4+ ARG GROUPID=1000
5+
6+ FROM ubuntu:focal
7+
8+ ARG USERID
9+ ARG GROUPID
10+
11+ RUN apt-get -qq update
12+ RUN apt install -y sudo
13+
14+ RUN echo "CREATE_HOME yes" >> /etc/login.defs
15+ RUN echo "user ALL=(ALL:ALL) ALL" >> /etc/sudoers
16+
17+ RUN groupadd -g ${USERID} user
18+ RUN useradd -d /home/user -g ${GROUPID} -u ${USERID} user
19+ RUN bash -c 'echo -e "user\n user" | passwd user'
20+
21+ WORKDIR /home/user
22+ USER user
Original file line number Diff line number Diff line change 11# BUILD redisfab/rmbuilder:${REDIS_VER}-${ARCH}-${OSNICK}
22
3- ARG REDIS_VER=6.2.5
4-
5- # OSNICK=bionic|stretch|buster
6- ARG OSNICK=buster
7-
8- # OS=debian:buster-slim|debian:stretch-slim|ubuntu:bionic
9- ARG OS=debian:buster-slim
3+ ARG REDIS_VER=6.2.7
4+ ARG OSNICK=bullseye
5+ ARG OS=debian:bullseye-slim
106
117# ARCH=x64|arm64v8|arm32v7
128ARG ARCH=x64
@@ -31,7 +27,6 @@ RUN python3 ./system-setup.py
3127RUN python2 ./gears/system-setup.py
3228RUN python3 ./graph/system-setup.py
3329RUN python2 ./search/system-setup.py
34- RUN python2 ./rscoordinator/system-setup.py
3530RUN python3 ./timeseries/system-setup.py
3631RUN python3 ./ai/system-setup.py
3732RUN python3 ./redisjson/system-setup.py
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ OSNICK ?= buster
55
66# OS ?= debian:buster-slim
77
8- REDIS_VER ?= 6.2.5
8+ REDIS_VER ?= 6.2.7
99
1010# ----------------------------------------------------------------------------------------------
1111
Original file line number Diff line number Diff line change @@ -20,20 +20,16 @@ def common_first(self):
2020 self .install_downloaders ()
2121 self .pip_install ("wheel" )
2222
23- self .install ("git unzip" ) # patchelf
23+ self .install ("git unzip" )
2424 if self .osnick != 'centos8' :
2525 self .install ("coreutils" ) # for realpath
2626
2727 def debian_compat (self ):
2828 self .run ("%s/bin/enable-utf8" % READIES )
2929 self .run ("%s/bin/getgcc" % READIES )
30- self .install ("gawk" )
31- self .install ("libssl-dev" )
32- self .install ("python3-regex" )
33- self .install ("python3-networkx python3-numpy" )
30+ self .install ("gawk libssl-dev python3-regex python3-networkx libmpich-dev libopenblas-dev" )
3431 if self .platform .is_arm ():
3532 self .install ("python3-dev" ) # python3-skimage
36- self .install ("libmpich-dev libopenblas-dev" ) # for libtorch
3733 self .install_git_lfs_on_linux ()
3834
3935 def redhat_compat (self ):
@@ -71,7 +67,7 @@ def macos(self):
7167 def common_last (self ):
7268 self .run ("%s/bin/getclang --format" % READIES )
7369 if self .platform == "arm" :
74- self .run ("%s/bin/getcmake" % READIES )
70+ self .run ("%s/bin/getcmake --from-repo " % READIES )
7571 else :
7672 self .run ("%s/bin/getcmake" % READIES )
7773
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python2
1+ #!/usr/bin/env python3
22
33import sys
44import os
@@ -31,7 +31,6 @@ def debian_compat(self):
3131 if sh ("apt-cache search libgdbm-compat-dev" ) != "" :
3232 self .install ("libgdbm-compat-dev" )
3333 self .install ("libgdbm-dev" )
34- self .install ("tcl-dev tix-dev tk-dev" )
3534
3635 self .install ("lsb-release" )
3736
@@ -42,7 +41,6 @@ def redhat_compat(self):
4241
4342 self .install ("bzip2-devel expat-devel gdbm-devel glibc-devel gmp-devel libffi-devel libuuid-devel ncurses-devel "
4443 "openssl-devel readline-devel sqlite-devel xz-devel zlib-devel" )
45- self .install ("tcl-devel tix-devel tk-devel" )
4644
4745 self .install ("redhat-lsb-core" )
4846 self .install ("libatomic file" )
@@ -55,7 +53,6 @@ def fedora(self):
5553 self .install ("autoconf automake libtool" )
5654 self .install ("bzip2-devel expat-devel gdbm-devel glibc-devel gmp-devel libffi-devel libnsl2-devel libuuid-devel ncurses-devel "
5755 "openssl-devel readline-devel sqlite-devel xz-devel zlib-devel" )
58- self .install ("tcl-devel tix-devel tk-devel" )
5956
6057 self .install ("libatomic file" )
6158
You can’t perform that action at this time.
0 commit comments