(cobra to sentry bot + docker) default docker file uses mbedtls + ws cobra_to_sentry pass tls options to sentryClient.
This commit is contained in:
parent
0bb5462504
commit
e8f81776f9
@ -2,6 +2,9 @@ FROM centos:8 as build
|
|||||||
|
|
||||||
RUN yum install -y gcc-c++ make cmake zlib-devel openssl-devel redhat-rpm-config
|
RUN yum install -y gcc-c++ make cmake zlib-devel openssl-devel redhat-rpm-config
|
||||||
|
|
||||||
|
RUN yum install -y epel-release
|
||||||
|
RUN yum install -y mbedtls-devel
|
||||||
|
|
||||||
RUN groupadd app && useradd -g app app
|
RUN groupadd app && useradd -g app app
|
||||||
RUN chown -R app:app /opt
|
RUN chown -R app:app /opt
|
||||||
RUN chown -R app:app /usr/local
|
RUN chown -R app:app /usr/local
|
||||||
@ -12,13 +15,16 @@ COPY --chown=app:app . /opt
|
|||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
RUN [ "make", "ws_install" ]
|
RUN [ "make", "ws_mbedtls_install" ]
|
||||||
RUN [ "rm", "-rf", "build" ]
|
RUN [ "rm", "-rf", "build" ]
|
||||||
|
|
||||||
FROM centos:8 as runtime
|
FROM centos:8 as runtime
|
||||||
|
|
||||||
RUN yum install -y gdb strace
|
RUN yum install -y gdb strace
|
||||||
|
|
||||||
|
RUN yum install -y epel-release
|
||||||
|
RUN yum install -y mbedtls
|
||||||
|
|
||||||
RUN groupadd app && useradd -g app app
|
RUN groupadd app && useradd -g app app
|
||||||
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
||||||
RUN chmod +x /usr/local/bin/ws
|
RUN chmod +x /usr/local/bin/ws
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All changes to this project will be documented in this file.
|
All changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [8.2.6] - 2020-03-16
|
||||||
|
|
||||||
|
(cobra to sentry bot + docker) default docker file uses mbedtls + ws cobra_to_sentry pass tls options to sentryClient.
|
||||||
|
|
||||||
## [8.2.5] - 2020-03-13
|
## [8.2.5] - 2020-03-13
|
||||||
|
|
||||||
(cobra client) ws cobra subscribe resubscribe at latest position after being disconnected
|
(cobra client) ws cobra subscribe resubscribe at latest position after being disconnected
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IX_WEBSOCKET_VERSION "8.2.5"
|
#define IX_WEBSOCKET_VERSION "8.2.6"
|
||||||
|
3
makefile
3
makefile
@ -23,6 +23,9 @@ ws_openssl:
|
|||||||
ws_mbedtls:
|
ws_mbedtls:
|
||||||
mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_MBED_TLS=1 .. ; make -j 4)
|
mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_MBED_TLS=1 .. ; make -j 4)
|
||||||
|
|
||||||
|
ws_mbedtls_install:
|
||||||
|
mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_MBED_TLS=1 .. ; make -j 4 install)
|
||||||
|
|
||||||
ws_no_ssl:
|
ws_no_ssl:
|
||||||
mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_WS=1 .. ; make -j 4)
|
mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_WS=1 .. ; make -j 4)
|
||||||
|
|
||||||
|
@ -454,6 +454,7 @@ int main(int argc, char** argv)
|
|||||||
bool enableHeartbeat = true;
|
bool enableHeartbeat = true;
|
||||||
int runtime = -1;
|
int runtime = -1;
|
||||||
ix::SentryClient sentryClient(dsn);
|
ix::SentryClient sentryClient(dsn);
|
||||||
|
sentryClient.setTLSOptions(tlsOptions);
|
||||||
|
|
||||||
ret = ix::cobra_to_sentry_bot(cobraConfig,
|
ret = ix::cobra_to_sentry_bot(cobraConfig,
|
||||||
channel,
|
channel,
|
||||||
|
Loading…
Reference in New Issue
Block a user