forked from larsnovikov/horgh-replicator
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
cbbbd1d
commit 07be533
Showing
6 changed files
with
7 additions
and
20 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
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,19 +1,21 @@ | ||
FROM golang:1.10 | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install curl g++ make bzip2 nano supervisor unixodbc unixodbc-dev mysql-client | ||
RUN apt-get -y install curl g++ make bzip2 nano unixodbc unixodbc-dev mysql-client | ||
|
||
WORKDIR /go/src/horgh-replicator | ||
COPY . . | ||
|
||
COPY files/vertica-client-7.2.0-0.x86_64.tar.gz /vertica-client.tar.gz | ||
RUN tar -xvf /vertica-client.tar.gz -C / | ||
|
||
VOLUME ../src/system/positions /go/src/horgh-replicator/src/system/positions | ||
|
||
#installing dep and vendors | ||
RUN go get -u github.com/golang/dep/... | ||
|
||
CMD ["sh", "-c", "cd /go/src/horgh-replicator/src \ | ||
&& dep ensure -update \ | ||
&& go build main.go \ | ||
&& mv main horgh-replicator \ | ||
&& /usr/bin/supervisord"] | ||
&& ./horgh-replicator listen"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.