Skip to content
Snippets Groups Projects
Commit 0e816032 authored by Alex de Cock Buning's avatar Alex de Cock Buning
Browse files

Dockerfiles: Updated file paths following repo restructuring

Adjusted the file paths in the Dockerfiles to align with the recent repository restructuring. This ensures that the Docker images now correctly reference the files in their new locations.

This change was necessary to maintain consistency and compatibility with the updated repository structure. It ensures that the Docker images can be built successfully and reflects the latest organization of project files.
parent d2ca6ae1
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
FROM onosproject/onos:2.7-latest
COPY . ./
COPY ./src/controller ./
RUN apt-get update && \
apt-get install wget && \
......
FROM python:3.11.6
RUN pip install kopf kubernetes PyMySQL cryptography requests
COPY l2sm-operator.py /l2sm-operator.py
COPY ./src/operator/l2sm-operator.py /l2sm-operator.py
CMD kopf run --standalone --all-namespaces /l2sm-operator.py
FROM golang:1.20 AS build
WORKDIR /usr/src/bin
WORKDIR /usr/src/l2sm-switch
COPY ./main.go ./go.mod ./
COPY ./src/switch/ ./build/switch/build-go.sh ./
RUN go build -v -o /usr/local/bin/l2sm-br ./...
RUN ./build-go.sh
FROM ubuntu:latest
WORKDIR /usr/local/bin
COPY --from=build /usr/local/bin/ .
COPY ./src/switch/vswitch.ovsschema /tmp/
COPY ./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 ./setup_switch.sh .
COPY ./src/switch/setup_switch.sh .
RUN chmod +x ./setup_switch.sh && \
mkdir /etc/l2sm/
CMD [ "./setup_switch.sh" ]
\ No newline at end of file
#!/usr/bin/env bash
set -e
DEST_DIR="/usr/local/bin"
if [ ! -d ${DEST_DIR} ]; then
mkdir ${DEST_DIR}
fi
go build -v -o "${DEST_DIR}"/l2sm-init ./cmd/l2sm-init
go build -v -o "${DEST_DIR}"/l2sm-vxlans ./cmd/l2sm-vxlans
This diff is collapsed.
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