<commit_before>FROM alpine:3.10
RUN apk add --no-cache cmake gcc git g++ musl-dev mbedtls-dev python py-pip make && rm -rf /var/cache/apk/*
ADD . /opt/open62541

# Get all the git tags to make sure we detect the correct version with git describe
WORKDIR /opt/open62541
RUN git remote add github-upstream https://github.com/open62541/open62541.git
RUN git fetch --tags github-upstream

WORKDIR /opt/open62541/build
RUN cmake -DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=Debug \
		-DUA_BUILD_EXAMPLES=ON \
		# Hardening needs to be disabled, otherwise the docker build takes too long and travis fails
		-DUA_ENABLE_HARDENING=OFF \
        -DUA_ENABLE_ENCRYPTION=ON \
        -DUA_ENABLE_SUBSCRIPTIONS=ON \
        -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON \
		-DUA_NAMESPACE_ZERO=FULL \
         /opt/open62541
RUN make -j
RUN make install
WORKDIR /opt/open62541

# Generate certificates
RUN apk add --no-cache python-dev linux-headers openssl && rm -rf /var/cache/apk/*
RUN pip install netifaces==0.10.9
RUN mkdir -p /opt/open62541/pki/created
RUN python /opt/open62541/tools/certs/create_self-signed.py /opt/open62541/pki/created


EXPOSE 4840
CMD ["/opt/open62541/build/bin/examples/server_ctt" , "/opt/open62541/pki/created/server_cert.der", "/opt/open62541/pki/created/server_key.der", "--enableUnencrypted", "--enableAnonymous"]
<commit_msg>adding missing submodule init command to Dockerfile<commit_after>FROM alpine:3.10
RUN apk add --no-cache cmake gcc git g++ musl-dev mbedtls-dev python py-pip make && rm -rf /var/cache/apk/*
ADD . /opt/open62541

# Get all the git tags to make sure we detect the correct version with git describe
WORKDIR /opt/open62541
RUN git remote add github-upstream https://github.com/open62541/open62541.git
RUN git fetch --tags github-upstream
RUN git submodule update --init --recursive

WORKDIR /opt/open62541/build
RUN cmake -DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=Debug \
		-DUA_BUILD_EXAMPLES=ON \
		# Hardening needs to be disabled, otherwise the docker build takes too long and travis fails
		-DUA_ENABLE_HARDENING=OFF \
        -DUA_ENABLE_ENCRYPTION=ON \
        -DUA_ENABLE_SUBSCRIPTIONS=ON \
        -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON \
		-DUA_NAMESPACE_ZERO=FULL \
         /opt/open62541
RUN make -j
RUN make install
WORKDIR /opt/open62541

# Generate certificates
RUN apk add --no-cache python-dev linux-headers openssl && rm -rf /var/cache/apk/*
RUN pip install netifaces==0.10.9
RUN mkdir -p /opt/open62541/pki/created
RUN python /opt/open62541/tools/certs/create_self-signed.py /opt/open62541/pki/created


EXPOSE 4840
CMD ["/opt/open62541/build/bin/examples/server_ctt" , "/opt/open62541/pki/created/server_cert.der", "/opt/open62541/pki/created/server_key.der", "--enableUnencrypted", "--enableAnonymous"]

{'fraction_non_alphanumeric': 0.1057204923968139, 'fraction_numerical': 0.05503258508327299, 'mean_word_length': 3.772020725388601, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7334025', 'n_tokens_mistral': 1104, 'n_tokens_neox': 973, 'n_words': 246}