File tree Expand file tree Collapse file tree 7 files changed +10
-7
lines changed
main/java/org/parallaxsecond/parsec/client/core/ipc_handler
parsec-jca-java-test/src/test/resources
parsec-testcontainers/parsec Expand file tree Collapse file tree 7 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1313/** IPC handler for Unix domain sockets */
1414public class UnixSocket implements IpcHandler {
1515 /** Default socket path used by the service. */
16- public static final String DEFAULT_SOCKET_PATH = "/parsec/quickstart /parsec.sock" ;
16+ public static final String DEFAULT_SOCKET_PATH = "/run/parsec /parsec.sock" ;
1717 /** Path at which the socket can be found */
1818 private final Path path ;
1919 /** Timeout for reads and writes on the streams */
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414# that the service does not hang for very big values of body or authentication length.
1515timeout = 3000 # in milliseconds
16- socket_path = "/parsec/quickstart /parsec.sock"
16+ socket_path = "/run/parsec /parsec.sock"
1717
1818[authenticator]
1919auth_type = "Direct"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ listener_type = "DomainSocket"
1414# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1515# that the service does not hang for very big values of body or authentication length.
1616timeout = 3000 # in milliseconds
17- socket_path = " /parsec/quickstart /parsec.sock"
17+ socket_path = " /run/parsec /parsec.sock"
1818
1919[authenticator ]
2020auth_type = " Direct"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414# that the service does not hang for very big values of body or authentication length.
1515timeout = 3000 # in milliseconds
16- socket_path = " /parsec/quickstart /parsec.sock"
16+ socket_path = " /run/parsec /parsec.sock"
1717
1818[authenticator ]
1919auth_type = " Direct"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414# that the service does not hang for very big values of body or authentication length.
1515timeout = 3000 # in milliseconds
16- socket_path = " /parsec/quickstart /parsec.sock"
16+ socket_path = " /run/parsec /parsec.sock"
1717
1818[authenticator ]
1919auth_type = " Direct"
Original file line number Diff line number Diff line change @@ -88,13 +88,16 @@ FROM ubuntu:latest AS runnable_image
8888COPY --from=layout /parsec /parsec
8989
9090ENV PATH=$PATH:/parsec/bin
91- ENV PARSEC_SERVICE_ENDPOINT=unix:/parsec/quickstart /parsec.sock
91+ ENV PARSEC_SERVICE_ENDPOINT=unix:/run/parsec /parsec.sock
9292
9393RUN apt update && apt install -y openssl socat
9494
9595
9696RUN useradd -ms /bin/bash qs
9797RUN chown -R qs:qs /parsec/quickstart
98+ RUN mkdir -p /run/parsec
99+ RUN chown -R qs:qs /run/parsec
100+ RUN chmod -R 777 /run/parsec
98101USER qs
99102
100103WORKDIR /parsec/quickstart
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ allow_root = true
77[listener ]
88listener_type = " DomainSocket"
99timeout = 200 # in milliseconds
10- socket_path = " /parsec/quickstart /parsec.sock"
10+ socket_path = " /run/parsec /parsec.sock"
1111
1212[authenticator ]
1313# auth_type = "UnixPeerCredentials"
You can’t perform that action at this time.
0 commit comments