File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Load stack utils
4+ . /usr/bin/stack-utils
5+
6+ # Implement build function
7+ function build() {
8+ cat << EOF > ${PROFILE_DIR} /${STACK_NAME} .sh
9+ export PATH="/opt/drycc/${STACK_NAME} /sbin:\$ PATH"
10+ EOF
11+ ./make.sh
12+ cp -rf /opt/drycc/nginx/* ${DATA_DIR}
13+ }
14+
15+ # call build stack
16+ build-stack " ${1} "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ curl -fsSL -o nginx.tar.gz http://nginx.org/download/nginx-${STACK_VERSION} .tar.gz
4+ tar -xvzf nginx.tar.gz
5+ cd nginx-${STACK_VERSION}
6+ ./configure \
7+ --prefix=/opt/drycc/nginx \
8+ --with-threads \
9+ --with-file-aio \
10+ --with-http_ssl_module \
11+ --with-http_v2_module \
12+ --with-pcre-jit
13+ make
14+ make install
15+ rm -rf /workspace/nginx.tar.gz /workspace/nginx-${STACK_VERSION}
You can’t perform that action at this time.
0 commit comments