Skip to content
Snippets Groups Projects
Commit b48e621b authored by Alejandro Tjaarda's avatar Alejandro Tjaarda
Browse files

switch: added ned image

parent bae1ab76
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
FROM golang:1.21 AS build
WORKDIR /usr/src/l2sm-ned
COPY ./src/switch/ ./
RUN go build -v -o /usr/local/bin/ned-server ./cmd/ned-server
FROM ubuntu:latest
WORKDIR /usr/local/bin
COPY ./src/switch/vswitch.ovsschema /tmp/
COPY --from=build /usr/local/bin/ .
RUN apt-get update && \
apt-get install -y net-tools iproute2 netcat-openbsd dnsutils curl iputils-ping iptables nmap tcpdump openvswitch-switch && \
mkdir /var/run/openvswitch && mkdir -p /etc/openvswitch && ovsdb-tool create /etc/openvswitch/conf.db /tmp/vswitch.ovsschema
COPY ./src/switch/setup_ned.sh .
RUN chmod +x ./setup_ned.sh && \
mkdir /etc/l2sm/
CMD [ "./setup_ned.sh" ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment