Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed build issues in Linux #906

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johandroid
Copy link

@johandroid johandroid commented Jan 14, 2021

This fix the build in an ubuntu environment.

You can use a Docker container to build with the following Dockerfile:

##########################################################

Suggested build:

sudo docker build -t avb-builder:1.0 .

Suggested run example:

sudo docker run -dit --name $UserName-Project-AVB -v ~/Documents/TE/Projects/AVB/OpenAvnu/:/code avb-builder:1.0

FROM ubuntu:20.04
MAINTAINER Lex Duque [email protected]

ARG USERID="1000"
ARG GROUPID="1000"
ARG TheGroup="thegroup"
ARG TheUser="theuser"
ARG TheWorkDir="/code"
ARG ThePass="thepass"

Users and groups

ENV USERID "${USERID}"
ENV GROUPID "${GROUPID}"
ENV TEGroup "${TEGroup}"
ENV TEUser "${TEUser}"
ENV TEWorkDir "${TEWorkDir}"
ENV TEPass "${TEPass}"

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Barcelona
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN rm -rf /var/lib/apt/lists/*
RUN apt update -y && apt -y full-upgrade
RUN apt install -y libpci-dev libpcap-dev libsndfile-dev libjack-dev make gcc cmake g++ libasound2-dev libglib2.0-dev

RUN rm /bin/sh && ln -s bash /bin/sh

User definition

RUN groupadd -g ${GROUPID} ${TheGroup}
RUN useradd -u ${USERID} -g ${GROUPID} -ms /bin/bash ${TheUser}
RUN usermod -a -G sudo ${TheUser}
RUN usermod -a -G users ${TheUser}
RUN echo "${TheUser}:${ThePass}" | chpasswd

Set Environment vars

ENV host=dockerbuilder
WORKDIR /${TheWorkDir}
RUN install -o ${USERID} -g ${GROUPID} -d ${TheWorkDir}
WORKDIR ${TheWorkDir}

##################################

It's up to you to include this Dockerfile in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant