Skip to content

Commit

Permalink
Changes for nsrlsvr end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed May 5, 2024
1 parent 217a1c4 commit c6ce8fa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 74 deletions.
32 changes: 32 additions & 0 deletions config/end_to_end/nsrlsvr.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM ubuntu:noble
MAINTAINER Log2Timeline <log2timeline-dev@go

ENV DEBIAN_FRONTEND=noninteractive

# Combining the apt-get commands into a single run reduces the size of the resulting image.
# The apt-get installations below are interdependent and need to be done in sequence.
RUN apt-get -y update && \
apt-get -y install apt-transport-https apt-utils && \
apt-get -y install libterm-readline-gnu-perl software-properties-common && \
apt-get -y install locales

# Set terminal to UTF-8 by default.
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

# Install nsrlsvr.
RUN add-apt-repository ppa:gift/dev -y && \
apt-get update -q && \
apt-get install -y nsrlsvr-server

# Initialize nsrlsvr hashes.txt file.
RUN mkdir -p /var/share/nsrlsvr && \
mkdir -p /usr/share/nsrlsvr && \
touch /usr/share/nsrlsvr/hashes.txt

WORKDIR /home/test/

# Clean up apt-get cache files.
RUN apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/*
74 changes: 0 additions & 74 deletions config/linux/ubuntu_install_nsrlsvr.sh

This file was deleted.

0 comments on commit c6ce8fa

Please sign in to comment.