Skip to content

Commit

Permalink
Allow running on host port and cbio-net
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 26, 2023
1 parent 83741f8 commit dcc652c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
24 changes: 12 additions & 12 deletions dev/clickhouse/clickhouse_provisioning/c_import_mysql_data.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
insert into cbioportal.sample_in_genetic_profile
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_sample_in_genetic_profile',
'cbio',
Expand All @@ -9,7 +9,7 @@ select * from mysql(

insert into cbioportal.sample_list
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_sample_list',
'cbio',
Expand All @@ -18,7 +18,7 @@ select * from mysql(

insert into cbioportal.structural_variant
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_structural_variant',
'cbio',
Expand All @@ -27,7 +27,7 @@ select * from mysql(

insert into cbioportal.sample
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_sample',
'cbio',
Expand All @@ -37,7 +37,7 @@ select * from mysql(

insert into cbioportal.sample_clinical_attribute_numeric
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_sample_clinical_attribute_numeric',
'cbio',
Expand All @@ -47,7 +47,7 @@ select * from mysql(

insert into cbioportal.sample_clinical_attribute_categorical
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_sample_clinical_attribute_categorical',
'cbio',
Expand All @@ -57,7 +57,7 @@ select * from mysql(

insert into cbioportal.patient_clinical_attribute_numeric
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_patient_clinical_attribute_numeric',
'cbio',
Expand All @@ -68,7 +68,7 @@ select * from mysql(

insert into cbioportal.patient_clinical_attribute_categorical
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_patient_clinical_attribute_categorical',
'cbio',
Expand All @@ -78,7 +78,7 @@ select * from mysql(

insert into cbioportal.genomic_event
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_genomic_event_mutation',
'cbio',
Expand All @@ -88,7 +88,7 @@ select * from mysql(

insert into cbioportal.genomic_event
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_genomic_event_cna',
'cbio',
Expand All @@ -97,7 +97,7 @@ select * from mysql(

insert into cbioportal.genomic_event
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_genomic_event_sv_gene1',
'cbio',
Expand All @@ -107,7 +107,7 @@ select * from mysql(

insert into cbioportal.genomic_event
select * from mysql(
'127.0.0.1:3306',
'host.docker.internal:3306',
'cbioportal',
'view_genomic_event_sv_gene2',
'cbio',
Expand Down
9 changes: 8 additions & 1 deletion dev/clickhouse/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
version: "3.1"

networks:
cbio-net:
name: cbio-net

services:

clickhouse:
image: clickhouse/clickhouse-server:22.6
container_name: clickhouse
network_mode: host
networks:
- cbio-net
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
cap_add:
- SYS_NICE
Expand Down

0 comments on commit dcc652c

Please sign in to comment.