diff options
author | codeskyblue <codeskyblue@gmail.com> | 2015-08-17 14:32:11 +0800 |
---|---|---|
committer | codeskyblue <codeskyblue@gmail.com> | 2015-08-17 14:32:11 +0800 |
commit | 54b8172a2435a5f5044250ff94ccada6263a8e10 (patch) | |
tree | c04c8c1e91e8dde2cbc1c6425e462026ce23b296 /docker/blocks | |
parent | 6712aa21fa314e1328dd73c849981e3e0efe9fc5 (diff) | |
download | gitea-54b8172a2435a5f5044250ff94ccada6263a8e10.tar.gz gitea-54b8172a2435a5f5044250ff94ccada6263a8e10.zip |
some modify, I need to move my workenv to foreign county, network in china is so slow.
Diffstat (limited to 'docker/blocks')
20 files changed, 0 insertions, 194 deletions
diff --git a/docker/blocks/docker_gogs/Dockerfile b/docker/blocks/docker_gogs/Dockerfile deleted file mode 100644 index 1b58fbcf92..0000000000 --- a/docker/blocks/docker_gogs/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM buildpack-deps:trusty-scm - -# This part is taken from the official docker image -------------------- - -RUN apt-get update && apt-get install -y \ - build-essential --no-install-recommends - -ENV GOLANG_VERSION 1.3 - -RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \ - | tar -v -C /usr/src -xz - -RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1 - -ENV PATH /usr/src/go/bin:$PATH - -RUN mkdir -p /go/src /go/bin && chmod -R 777 /go -ENV GOPATH /go -ENV PATH /go/bin:$PATH -WORKDIR /go - -# ---------------------------------------------------------------------- - - -RUN useradd -m git - -ENV GOGS_PATH $GOPATH/src/github.com/gogits/gogs -ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf -ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini - -RUN go get -u -d github.com/gogits/gogs -# WORKDIR $GOGS_PATH -WORKDIR /go/src/github.com/gogits/gogs -RUN go build github.com/gogits/gogs -RUN chown -R git $GOGS_PATH - -ADD init_gogs.sh /tmp/ -RUN chown git /tmp/init_gogs.sh -RUN chmod +x /tmp/init_gogs.sh - -USER git -ENV HOME /home/git -ENV USER git -ENV PATH $GOGS_PATH:$PATH - -RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" - -ENTRYPOINT ["/tmp/init_gogs.sh"] -CMD ["gogs", "web"] diff --git a/docker/blocks/docker_gogs_dev/Dockerfile b/docker/blocks/docker_gogs_dev/Dockerfile deleted file mode 100644 index a51d165ee8..0000000000 --- a/docker/blocks/docker_gogs_dev/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM buildpack-deps:trusty-scm - -# This part is taken from the official docker image -------------------- - -RUN apt-get update && apt-get install -y \ - build-essential --no-install-recommends - -ENV GOLANG_VERSION 1.3 - -RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \ - | tar -v -C /usr/src -xz - -RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1 - -ENV PATH /usr/src/go/bin:$PATH - -RUN mkdir -p /go/src /go/bin && chmod -R 777 /go -ENV GOPATH /go -ENV PATH /go/bin:$PATH -WORKDIR /go - -# ---------------------------------------------------------------------- - - -RUN useradd -m git - -ENV GOGS_PATH $GOPATH/src/github.com/gogits/gogs -ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf -ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini - -RUN git clone -b dev https://github.com/gogits/gogs.git $GOGS_PATH -# WORKDIR $GOGS_PATH -WORKDIR /go/src/github.com/gogits/gogs -RUN go get -d && go build -RUN chown -R git $GOGS_PATH - -ADD init_gogs.sh /tmp/ -RUN chown git /tmp/init_gogs.sh -RUN chmod +x /tmp/init_gogs.sh - -USER git -ENV HOME /home/git -ENV USER git -ENV PATH $GOGS_PATH:$PATH - -RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" - -ENTRYPOINT ["/tmp/init_gogs.sh"] -CMD ["gogs", "web"] diff --git a/docker/blocks/option_cache_memcache/config b/docker/blocks/option_cache_memcache/config deleted file mode 100644 index daca6f3ef9..0000000000 --- a/docker/blocks/option_cache_memcache/config +++ /dev/null @@ -1,3 +0,0 @@ -[cache] -DB_TYPE = memcache -HOST = HOST = ${CACHE_1_PORT_11211_TCP_ADDR}:${CACHE_1_PORT_11211_TCP_PORT} diff --git a/docker/blocks/option_cache_memcache/docker-compose b/docker/blocks/option_cache_memcache/docker-compose deleted file mode 100644 index 80d0215cc7..0000000000 --- a/docker/blocks/option_cache_memcache/docker-compose +++ /dev/null @@ -1,2 +0,0 @@ -cache: - image: sylvainlasnier/memcached:latest diff --git a/docker/blocks/option_cache_redis/config b/docker/blocks/option_cache_redis/config deleted file mode 100644 index 648f4f3802..0000000000 --- a/docker/blocks/option_cache_redis/config +++ /dev/null @@ -1,3 +0,0 @@ -[cache] -DB_TYPE = redis -HOST = ${CACHE_1_PORT_6379_TCP_ADDR}:${CACHE_1_PORT_6379_TCP_PORT} diff --git a/docker/blocks/option_cache_redis/docker-compose b/docker/blocks/option_cache_redis/docker-compose deleted file mode 100644 index 0e74bc4aef..0000000000 --- a/docker/blocks/option_cache_redis/docker-compose +++ /dev/null @@ -1,2 +0,0 @@ -cache: - image: redis:latest diff --git a/docker/blocks/option_db_mysql/config b/docker/blocks/option_db_mysql/config deleted file mode 100644 index 53f8949d9b..0000000000 --- a/docker/blocks/option_db_mysql/config +++ /dev/null @@ -1,6 +0,0 @@ -[database] -DB_TYPE = mysql -HOST = ${DB_1_PORT_3306_TCP_ADDR}:${DB_1_PORT_3306_TCP_PORT} -NAME = ${DB_1_ENV_MYSQL_DATABASE} -USER = ${DB_1_ENV_MYSQL_USER} -PASSWD = ${DB_1_ENV_MYSQL_PASSWORD} diff --git a/docker/blocks/option_db_mysql/docker-compose b/docker/blocks/option_db_mysql/docker-compose deleted file mode 100644 index a005a0593c..0000000000 --- a/docker/blocks/option_db_mysql/docker-compose +++ /dev/null @@ -1,7 +0,0 @@ -db: - image: mysql:latest - environment: - MYSQL_ROOT_PASSWORD: rootpass - MYSQL_DATABASE: gogs - MYSQL_USER: gogs - MYSQL_PASSWORD: password diff --git a/docker/blocks/option_db_postgresql/config b/docker/blocks/option_db_postgresql/config deleted file mode 100644 index e5946b06db..0000000000 --- a/docker/blocks/option_db_postgresql/config +++ /dev/null @@ -1,6 +0,0 @@ -[database] -DB_TYPE = postgres -HOST = ${DB_1_PORT_5432_TCP_ADDR}:${DB_1_PORT_5432_TCP_PORT} -NAME = ${DB_1_ENV_POSTGRESQL_DB} -USER = ${DB_1_ENV_POSTGRESQL_USER} -PASSWD = ${DB_1_ENV_POSTGRESQL_PASS} diff --git a/docker/blocks/option_db_postgresql/docker-compose b/docker/blocks/option_db_postgresql/docker-compose deleted file mode 100644 index c839e90448..0000000000 --- a/docker/blocks/option_db_postgresql/docker-compose +++ /dev/null @@ -1,6 +0,0 @@ -db: - image: wyaeld/postgres:9.3 - environment: - POSTGRESQL_DB: gogs - POSTGRESQL_USER: gogs - POSTGRESQL_PASS: password diff --git a/docker/blocks/option_session_mysql/config b/docker/blocks/option_session_mysql/config deleted file mode 100644 index b8bc2cc703..0000000000 --- a/docker/blocks/option_session_mysql/config +++ /dev/null @@ -1,3 +0,0 @@ -[session] -PROVIDER = mysql -PROVIDER_CONFIG = ${SESSION_1_ENV_MYSQL_USER}:${SESSION_1_ENV_MYSQL_PASSWORD}@SESSION_1_PORT_3306_TCP_PROTO(${SESSION_1_PORT_3306_TCP_ADDR}:${SESSION_1_PORT_3306_TCP_PORT})/${SESSION_1_ENV_MYSQL_DATABASE} diff --git a/docker/blocks/option_session_mysql/docker-compose b/docker/blocks/option_session_mysql/docker-compose deleted file mode 100644 index 0e2dbf19c9..0000000000 --- a/docker/blocks/option_session_mysql/docker-compose +++ /dev/null @@ -1,7 +0,0 @@ -session: - image: mysql:latest - environment: - MYSQL_ROOT_PASSWORD: rootpass - MYSQL_DATABASE: gogs_session - MYSQL_USER: gogs - MYSQL_PASSWORD: password diff --git a/docker/blocks/w_cache/docker-compose b/docker/blocks/w_cache/docker-compose deleted file mode 100644 index fd66c35786..0000000000 --- a/docker/blocks/w_cache/docker-compose +++ /dev/null @@ -1,6 +0,0 @@ -gogs: - build: docker - links: - - cache - ports: - - "3000:3000" diff --git a/docker/blocks/w_cache_session/docker-compose b/docker/blocks/w_cache_session/docker-compose deleted file mode 100644 index 0f90114064..0000000000 --- a/docker/blocks/w_cache_session/docker-compose +++ /dev/null @@ -1,7 +0,0 @@ -gogs: - build: docker - links: - - cache - - session - ports: - - "3000:3000" diff --git a/docker/blocks/w_db/docker-compose b/docker/blocks/w_db/docker-compose deleted file mode 100644 index a7e9c1b69a..0000000000 --- a/docker/blocks/w_db/docker-compose +++ /dev/null @@ -1,6 +0,0 @@ -gogs: - build: docker - links: - - db - ports: - - "3000:3000" diff --git a/docker/blocks/w_db_cache/docker-compose b/docker/blocks/w_db_cache/docker-compose deleted file mode 100644 index 42402e40f3..0000000000 --- a/docker/blocks/w_db_cache/docker-compose +++ /dev/null @@ -1,7 +0,0 @@ -gogs: - build: docker - links: - - db - - cache - ports: - - "3000:3000" diff --git a/docker/blocks/w_db_cache_session/docker-compose b/docker/blocks/w_db_cache_session/docker-compose deleted file mode 100644 index 42444405af..0000000000 --- a/docker/blocks/w_db_cache_session/docker-compose +++ /dev/null @@ -1,8 +0,0 @@ -gogs: - build: docker - links: - - db - - cache - - session - ports: - - "3000:3000" diff --git a/docker/blocks/w_db_session/docker-compose b/docker/blocks/w_db_session/docker-compose deleted file mode 100644 index 3703c6ba33..0000000000 --- a/docker/blocks/w_db_session/docker-compose +++ /dev/null @@ -1,7 +0,0 @@ -gogs: - build: docker - links: - - db - - session - ports: - - "3000:3000" diff --git a/docker/blocks/w_none/docker-compose b/docker/blocks/w_none/docker-compose deleted file mode 100644 index c0fed209d6..0000000000 --- a/docker/blocks/w_none/docker-compose +++ /dev/null @@ -1,4 +0,0 @@ -gogs: - build: docker - ports: - - "3000:3000" diff --git a/docker/blocks/w_session/docker-compose b/docker/blocks/w_session/docker-compose deleted file mode 100644 index 7dda0dde92..0000000000 --- a/docker/blocks/w_session/docker-compose +++ /dev/null @@ -1,6 +0,0 @@ -gogs: - build: docker - links: - - session - ports: - - "3000:3000" |