Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit17cdc12

Browse files
Refactor scripts to build and run YAStack
1 parent3c5a2f1 commit17cdc12

File tree

8 files changed

+45
-8
lines changed

8 files changed

+45
-8
lines changed

‎packaging/Dockerfile-yastack-image‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM quay.io/fbalicchia/ubuntu-1810:latest
1+
ARG YASTACK_BASE_IMAGE=yastack/ubuntu
2+
ARG BASE_VER=16.04
3+
4+
FROM ${YASTACK_BASE_IMAGE}:${BASE_VER}
25

36
RUN cd / && git clone https://github.com/saaras-io/yastack.git
47
RUN cd /yastack/ev/external/protobuf-3.5.0 && ./autogen.sh && ./configure && make && make check && make install && ldconfig

‎packaging/Dockerfile-yastack-ubuntu1810‎renamed to ‎packaging/Dockerfile-yastack-ubuntu‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
ARG DPDK_VERSION=18.05
2-
ARG OS_VER=18.10
2+
ARG OS_VER=18.04
33
FROM ubuntu:${OS_VER}
4+
#linux-headers-$(uname -r) \
5+
6+
RUN apt-get update && apt-get install -y linux-headers-$(uname -r)
47

58
RUN apt-get update && apt-get install -y \
69
g++-5 \
710
gcc-5 \
8-
libnuma-dev \
9-
linux-headers-$(uname -r) \
11+
libnuma-dev \
1012
autoconf \
1113
make \
1214
automake \
@@ -25,7 +27,11 @@ RUN apt-get update && apt-get install -y \
2527
python \
2628
libz-dev \
2729
golang-go \
30+
rsync \
2831
curl \
32+
kmod \
33+
pciutils \
34+
vim \
2935
&& rm -rf /var/lib/apt/lists/*
3036

3137
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
@@ -49,4 +55,4 @@ RUN tar -xvzf cmake-3.14.2.tar.gz
4955
RUN cd cmake-3.14.2/ && ./bootstrap && make && make install
5056

5157
# # Copy static binaries protoc and protoc-gen-validate
52-
COPY protoc-gen-validate /bin
58+
COPY protoc-gen-validate /bin

‎packaging/README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Build ubundu image with all dependency
2+
3+
`./docker_build_ubuntu_cmd.sh`
4+
5+
Build YAstack image
6+
7+
`docker_build_yastack_cmd.sh`
8+
9+
Run Yastack
10+
11+
`docker_run_cmd.sh`

‎packaging/docker_build_cmd.sh‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎packaging/docker_build_ubuntu1810_cmd.sh‎

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
OS_VER=16.04
4+
docker build -f ./Dockerfile-yastack-ubuntu \
5+
--build-arg OS_VER=${OS_VER} \
6+
-t yastack/ubuntu:${OS_VER}.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
docker build -f Dockerfile-yastack-image \
4+
--build-arg DPDK_VER=18.05 \
5+
--build-arg YASTACK_BASE_IMAGE=yastack/ubuntu \
6+
--build-arg BASE_VER=16.04 \
7+
-t ubuntu/yastack:0.1alpha.

‎packaging/docker_run_cmd.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
sudo docker run --network host -i --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -t ubuntu/yastack:0.1alpha /bin/bash
1+
#!/usr/bin/env bash
2+
3+
docker run --network host -i \
4+
--privileged --cap-add=ALL \
5+
-v /dev:/dev \
6+
-v /lib/modules:/lib/modules \
7+
-t ubuntu/yastack:0.1alpha /bin/bash

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp