Skip to content

Commit

Permalink
Fix errors in graphicalquerybuilder SQL-join plugin (#36)
Browse files Browse the repository at this point in the history
* Fix errors in graphicalquerybuilder

* Bump version due to graphicalquerybuilder plugin change

* Bump workflow versions
  • Loading branch information
artis3n authored Apr 19, 2021
1 parent d372496 commit b5d6fe5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: 2.1
jobs:
build:
machine:
image: ubuntu-2004:202010-01
# https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
image: ubuntu-2004:202101-01
steps:
- checkout
- run: git submodule sync
Expand All @@ -21,6 +22,9 @@ jobs:
- run:
name: Build the image
command: make build-ci
- run:
name: Lint
command: make lint
- run:
name: Goss tests
command: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
submodules: true

- name: Lint Dockerfile
uses: brpaz/hadolint-action@1623ba61710b974b55ba455930e6f2c8ef919778 # v1.3.1
uses: brpaz/hadolint-action@v1.4.0
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v2.1.4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -38,7 +38,7 @@ jobs:

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1.11.0
uses: crazy-max/ghaction-docker-meta@v2.3.0
with:
images: ghcr.io/artis3n/pgmodeler-container
tag-latest: true
Expand Down
35 changes: 25 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ FROM ubuntu:20.10 as compiler
ARG INSTALLATION_ROOT=/app
ARG QMAKE_PATH=/usr/bin/qmake
ARG DEBIAN_FRONTEND=noninteractive
ARG TERM=xterm

RUN apt-get update \
&& apt-get -y install --no-install-recommends build-essential git libboost-dev libpq-dev libqt5svg5-dev libxml2 libxml2-dev pkg-config qt5-default qttools5-dev \
&& apt-get -y install --no-install-recommends \
build-essential \
git \
libboost-dev \
libpq-dev \
libqt5svg5-dev \
libxml2 \
libxml2-dev \
pkg-config \
qt5-default \
qttools5-dev \
# Slim down layer size
# Not strictly necessary since this is a multi-stage build but hadolint would complain
&& apt-get autoremove -y \
Expand All @@ -20,11 +29,14 @@ RUN apt-get update \
COPY ./pgmodeler /pgmodeler
COPY ./plugins /pgmodeler/plugins

# fatal: unable to access 'http://siekiera.mimuw.edu.pl:8082/paal/': Failed to connect to siekiera.mimuw.edu.pl port 8082: Connection timed out
# https://github.com/pgmodeler/plugins/issues/16
#
# Configure the SQL-join graphical query builder plugin
WORKDIR /pgmodeler/plugins/graphicalquerybuilder
RUN ./setup.sh paal \
&& sed -i.bak s/GQB_JOIN_SOLVER=\"n\"/GQB_JOIN_SOLVER=\"y\"/ graphicalquerybuilder.conf \
&& sed -i.bak s/BOOST_INSTALLED=\"n\"/BOOST_INSTALLED=\"y\"/ graphicalquerybuilder.conf
# WORKDIR /pgmodeler/plugins/graphicalquerybuilder
# RUN ./setup.sh paal \
# && sed -i.bak s/GQB_JOIN_SOLVER=\"n\"/GQB_JOIN_SOLVER=\"y\"/ graphicalquerybuilder.conf \
# && sed -i.bak s/BOOST_INSTALLED=\"n\"/BOOST_INSTALLED=\"y\"/ graphicalquerybuilder.conf

WORKDIR /pgmodeler
RUN mkdir /app \
Expand All @@ -45,15 +57,18 @@ RUN mkdir /app \

# Now that the image is compiled, we can remove most of the image size bloat
FROM ubuntu:20.10 as app
LABEL Name="artis3n/pgmodeler"
LABEL Version="1.3.1"
LABEL name="artis3n/pgmodeler"
LABEL version="1.4.0"
LABEL maintainer="Artis3n <dev@artis3nal.com>"

ARG DEBIAN_FRONTEND=noninteractive
ARG TERM=xterm

RUN apt-get update \
&& apt-get -y install --no-install-recommends libpq-dev libqt5svg5-dev libxml2 qt5-default \
&& apt-get -y install --no-install-recommends \
libpq-dev \
libqt5svg5-dev \
libxml2 \
qt5-default \
# Slim down layer size
&& apt-get autoremove -y \
&& apt-get autoclean -y \
Expand Down

0 comments on commit b5d6fe5

Please sign in to comment.