Skip to content

Commit

Permalink
Update: Build's Dockerfile is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
i0gan committed Mar 18, 2024
1 parent 01bbe9a commit 8ab869a
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 76 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, arch-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Building squick third party library for linux and macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'arch-latest' || matrix.os == 'macOS-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
run: |
cd tools && ./build_third_party.sh
Expand All @@ -22,7 +22,7 @@ jobs:
.\clone_thirdparty_build.bat
- name: Building sqkctl tools for linux and macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'arch-latest' || matrix.os == 'macOS-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
run: |
cd tools && ./build_sqkctl.sh
Expand All @@ -33,7 +33,7 @@ jobs:
.\build_sqkctl.bat
- name: Building squick project for linux and macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'arch-latest' || matrix.os == 'macOS-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
run: |
cd tools && ./build_squick.sh
Expand All @@ -44,12 +44,16 @@ jobs:
.\build_squick.bat
- name: Geneating deploy files for linux and macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'arch-latest' || matrix.os == 'macOS-latest'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
run: |
cd tools && ./generate_deploy.sh
cd ../deploy
tree
- name: Geneating deploy files for windows
if: matrix.os == 'windows-latest'
run: |
cd tools
.\generate_deploy.bat
.\generate_deploy.bat
cd ..\deploy
tree
16 changes: 16 additions & 0 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:22.04
# Set env
ARG DEBIAN_FRONTEND=noninteractive
# The build enviroment for Squick
RUN apt update
RUN apt-get install -y git cmake make g++
RUN apt-get install -y libtool libreadline-dev libncurses-dev pkg-config libssl-dev
RUN apt-get install -y python3

# Build Squick c++ source code
RUN cd ~ && git clone https://github.com/pwnsky/squick.git

WORKDIR ~/squick
RUN cd tools && chmod +x *.sh
RUN cd tools && ./build_third_party.sh && ./build_sqkctl.sh && ./build_squick.sh
RUN ./generate_deploy.sh
9 changes: 2 additions & 7 deletions docker/deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
# Set env
ARG DEBIAN_FRONTEND=noninteractive
# The build enviroment for Squick
RUN apt update && apt-get install -y git cmake unzip automake make g++ libtool libreadline6-dev libncurses5-dev pkg-config libssl-dev nodejs npm
RUN apt update && apt-get install -y git cmake unzip automake make g++ libtool libreadline-dev libncurses-dev pkg-config libssl-dev python3

# Build Squick c++ source code
RUN cd ~ && git clone https://github.com/i0gan/Squick.git
RUN cd ~/Squick && chmod +x build.sh && chmod +x third_party/build.sh
RUN cd ~/Squick/third_party && bash ./build.sh
RUN cd ~/Squick/ && bash ./build.sh

# Build www javascript source code

RUN cd ~/Squick/www/admin && git config --global url."https://".insteadOf git:// && npm install
RUN cd ~/Squick/www/admin && bash ./build.sh

# Build www c++ source code
19 changes: 0 additions & 19 deletions docker/dev/build/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions docker/mysql/conf/my.conf

This file was deleted.

17 changes: 0 additions & 17 deletions docker/mysql/create.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docker/runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
# Set env
ARG DEBIAN_FRONTEND=noninteractive

Expand Down
Empty file removed docker/single.yml
Empty file.

0 comments on commit 8ab869a

Please sign in to comment.