Skip to content

Commit

Permalink
general bug fixing*
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus anatolius committed Mar 17, 2020
1 parent ff2a91e commit c63e9f8
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 57 deletions.
19 changes: 12 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
#!/bin/bash

sh ./gatekeeper/build.sh
if [$1 -eq ""]
then
set "id_ed25519"
fi

sh ./gatekeeper/build.sh $1
wait
echo "gatekeeper image Successfully built"
sh ./keycloak/build.sh
sh ./keycloak/build.sh $1
wait
echo "keycloak image Successfully built"
sh ./login/build.sh
sh ./login/build.sh $1
wait
echo "login image Successfully built"
sh ./portal/build.sh
sh ./portal/build.sh $1
wait
echo "portal image Successfully built"
sh ./postgresql/build.sh
sh ./postgresql/build.sh $1
wait
echo "postgresql image Successfully built"
sh ./source.manager/build.sh
sh ./source.manager/build.sh $1
echo "source.manager image Successfully built"
wait
sh ./doc/build.sh
sh ./doc/build.sh $1
echo "doc image Successfully built"
14 changes: 7 additions & 7 deletions data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS sources (
);

CREATE table IF NOT EXISTS provider_sources (
id serial PRIMARY KEY ,
id serial PRIMARY KEY,
user_id integer NOT NULL,
source_id integer,

Expand All @@ -40,8 +40,8 @@ CREATE table IF NOT EXISTS provider_sources (
update_at timestamp
);

CREATE table IF NOT EXISTS std_fields (
id serial UNIQUE NOT NULL ,
CREATE table IF NOT EXISTS std_fields(
id serial UNIQUE NOT NULL,
std_field_id integer,

category varchar(100),
Expand All @@ -63,20 +63,20 @@ CREATE table IF NOT EXISTS std_fields (
update_at timestamp
);

CREATE table IF NOT EXISTS std_fields_values (
CREATE table IF NOT EXISTS std_fields_values(
id serial UNIQUE NOT NULL,
std_field_id int NOT NULL,
values varchar(150),

CONSTRAINT std_fields_id_fkkey FOREIGN KEY (std_field_id)
CONSTRAINT std_fields_values_fkkey FOREIGN KEY (std_field_id)
REFERENCES std_fields(id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,

create_at timestamp NOT NULL DEFAULT NOW(),
update_at timestamp
)
);

CREATE table IF NOT EXISTS addtl_fields (
CREATE table IF NOT EXISTS addtl_fields(
id serial UNIQUE NOT NULL ,
addtl_field_id integer,

Expand Down
6 changes: 0 additions & 6 deletions doc/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/bin/bash
# sh ./build.sh id_rsa_insylva_docker
if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
Expand All @@ -13,4 +8,3 @@ while [ "$1" != "" ]; do
done

docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.doc ./doc/.

7 changes: 1 addition & 6 deletions gatekeeper/build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#!/bin/bash
# sh ./build.sh id_rsa_insylva_docker
if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub)
# Shift all the parameters down by one
shift
done
# --no-cache

docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.gatekeeper ./gatekeeper/.

7 changes: 1 addition & 6 deletions login/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/bin/bash

if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub)
# Shift all the parameters down by one
Expand Down
2 changes: 1 addition & 1 deletion portal/.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REACT_APP_IN_SYLVA_GATEKEEPER_HOST=/gatekeeper
REACT_APP_IN_SYLVA_SOURCE_MANAGER_HOST=/source-manager
REACT_APP_IN_SYLVA_KEYCLOAK_HOST=/keycloak
REACT_APP_IN_SYLVA_CLIENT_ID=in-sylva.user.app
REACT_APP_IN_SYLVA_CLIENT_ID=data
REACT_APP_IN_SYLVA_GRANT_TYPE=password
REACT_APP_IN_SYLVA_REALM=in-sylva
REACT_APP_PORT=3000
2 changes: 1 addition & 1 deletion portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ FROM nginx:latest

RUN apt-get update && apt-get install wget -y && apt-get install telnet -y

# RUN apt-get install iputils-ping -y
RUN apt-get install iputils-ping -y

RUN apt-get update && apt-get install nginx-extras -y

Expand Down
11 changes: 2 additions & 9 deletions portal/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#!/bin/bash

# ex: sh ./build.sh id_rsa_insylva_docker

if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub)
# Shift all the parameters down by one
shift
done
# --no-cache
docker build --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.portal ./portal/.

docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.portal ./portal/.
2 changes: 1 addition & 1 deletion postgresql/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
# Benjamin

docker build --no-cache -t in-sylva.postgres ./postgresql/.
8 changes: 1 addition & 7 deletions search/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/bin/bash
# sh ./build.sh id_rsa_insylva_docker
if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
Expand All @@ -12,6 +7,5 @@ while [ "$1" != "" ]; do
shift
done

# --no-cache
docker build --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.search ./search/.
docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.search .

6 changes: 0 additions & 6 deletions source.manager/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/bin/bash

# ex: sh ./build.sh id_rsa_insylva_docker
if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub)
Expand Down

0 comments on commit c63e9f8

Please sign in to comment.