Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
FROM python:2.7-alpine

MAINTAINED BY adolfo@orangemonk.net

#Keep it simple

COPY ./app /app
WORKDIR /app
RUN pip install -r requirements.txt

ENTRYPOINT ["python"]
CMD ["main.py"]


Build arm image (A)

Log into an arm server, copy the code into the structure depicted above.

cd to the root of the code tree above,  Assuming you have compiled the arm executable for the application, then execute

Code Block
docker build -t onap/app-py-arm-linux .

...

Code Block
docker push onap/app-py-arm-linux:latest

Build Intel image (B)

Log into an intel server, setup the code structure as before.

Let's now repeat the process for the intel layers of the multi-cpu container image.

...