-
Install elrepo
wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/elrepo-release-7.0-8.el7.elrepo.noarch.rpm sudo rpm -Uvh elrepo-release-7.0-8.el7.elrepo.noarch.rpm sudo vi -i 's|http://elrepo.org/linux|https://linux.cc.iitk.ac.in/mirror/centos|g' /etc/yum.repos.d/elrepo.repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
EXEC_PATH=docker-compose | |
DEFAULT_FILES="*.yml *.yaml" | |
ARGS= | |
FILES= | |
START=1 | |
END=$# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\033[32m download new package (version $1) \033[0m" | |
wget -O yapi.tgz http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-$1.tgz | |
echo -e "\033[32m build new image \033[0m" | |
docker build -t registry.cn-beijing.aliyuncs.com/falconia/yapi:latest . | |
docker tag registry.cn-beijing.aliyuncs.com/falconia/yapi:latest registry.cn-beijing.aliyuncs.com/falconia/yapi:$1 | |
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:latest | |
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter> | |
<filter-name>CorsFilter</filter-name> | |
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class> | |
<init-param> | |
<param-name>cors.allowed.origins</param-name> | |
<param-value>*</param-value> | |
</init-param> | |
</filter> | |
<filter-mapping> | |
<filter-name>CorsFilter</filter-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=vlmcsd | |
Wants=network.target | |
After=syslog.target | |
[Service] | |
Type=forking | |
PIDFile=/var/run/vlmcsd.pid | |
ExecStart=/usr/local/vlmcsd/vlmcsd -l /var/log/vlmcsd.log -p /var/run/vlmcsd.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#useradd -m -U -s /bin/bash builder | |
#yum -y groupinstall 'Development Tools' | |
#yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools pcre-devel libedit-devel | |
#rpm -Uvh rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-devel-1.6.5-1.el6.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-1.6.5-1.el6.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-GeoLite-data-2018.04-1.el6.noarch.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-GeoLite-data-extra-2018.04-1.el6.noarch.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/geoipupdate-3.1.1-2.el6.x86_64.rpm | |
#useradd -U -m -r -s /sbin/nologin builder | |
OPENSSL="openssl-1.1.1l" | |
NGINX_VERSION="1.19.5-1" | |
NJS_VERSION="1.19.5+0.5.0-1" | |
MODULE_STICKY_VERSION="08a395c66e42" # master 2016-08-09 |