For now there are two methods: - `NETWORK:IsUrlAllowed()`: Check whether access to a certain URL is allowed. - `NETWORK:HttpRequest()`: Perform an HTTP request. By default access to the network is disabled for all target hosts. It can be enabled by setting `HttpEnable=1` in the preferences. Individual hosts have to be added to `HttpAllowHosts` as a comma separated list to allow access. See included docs for more details on usage.
23 lines
572 B
Docker
23 lines
572 B
Docker
# Build time
|
|
FROM ubuntu:trusty as build
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update
|
|
RUN apt-get -y install wget
|
|
RUN mkdir -p /tmp/cmake
|
|
WORKDIR /tmp/cmake
|
|
RUN wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz
|
|
RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz
|
|
|
|
RUN apt-get -y install g++ libssl-dev libz-dev make python git
|
|
|
|
COPY . .
|
|
|
|
ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin
|
|
ENV PATH="${CMAKE_BIN_PATH}:${PATH}"
|
|
|
|
RUN ["make", "ws_no_python"]
|
|
|
|
ENTRYPOINT ["ws"]
|
|
CMD ["--help"]
|