-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
# cd {squick_project} | ||
# docker build . -t i0gan/squick_src:1.1 -f ./docker/src | ||
# docker run -d --name squick_src i0gan/squick_src:1.1 | ||
# rm -rf ./cache/docker_deploy | ||
# docker cp squick_src:/squick/deploy ./cache/docker_deploy | ||
|
||
# docker build . -t i0gan/squick:1.1 -f ./docker/release | ||
# docker run -it --name squick i0gan/squick:1.1 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
# Set env | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt update && apt install -y dos2unix vim net-tools | ||
|
||
# copy from docker builded files | ||
COPY ./cache/docker_deploy /squick | ||
WORKDIR /squick | ||
RUN chmod +x /squick/script/*.sh | ||
CMD bash /squick/script/squick.sh | ||
CMD bash /squick/script/squick.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# cd {squick_project} | ||
# docker build . -t i0gan/squick_src:1.1 -f ./docker/src | ||
# docker run -d --name squick_src i0gan/squick_src:1.1 | ||
# rm -rf ./cache/docker_deploy | ||
# docker cp squick_src:/squick/deploy ./cache/docker_deploy | ||
|
||
# docker build . -t i0gan/squick:1.1 -f ./docker/release | ||
# docker run -it --name squick i0gan/squick:1.1 | ||
|
||
FROM ubuntu:22.04 | ||
# Set env | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# copy from docker builded files | ||
COPY ./cache/docker_deploy /squick | ||
WORKDIR /squick | ||
RUN chmod +x /squick/script/*.sh | ||
CMD bash /squick/script/squick.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM pwnsky/squick_src:1.1 | ||
|
||
COPY . /squick_dep | ||
|
||
RUN rm -rf /squick_dep/third_party && mv /squick/third_party /squick_dep && rm -rf /squick && mv /squick_dep /squick | ||
|
||
WORKDIR /squick | ||
RUN cd tools && chmod +x *.sh && dos2unix *.sh | ||
RUN cd script && chmod +x *.sh && dos2unix *.sh | ||
|
||
RUN bash ./tools/clean_squick.sh | ||
RUN bash ./tools/build_sqkctl.sh | ||
RUN bash ./tools/build_squick.sh | ||
RUN bash ./tools/generate_deploy.sh | ||
CMD bash /squick/script/squick.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/bash | ||
|
||
# build image | ||
bash ../docker/build_image.sh | ||
|
||
|
||
|