Community discussions

MikroTik App
 
Miracles
just joined
Topic Author
Posts: 11
Joined: Fri Apr 14, 2023 2:28 pm

RTOS v7.8 hAP ax3 fails to launch a Docker container

Fri Apr 14, 2023 2:45 pm

Hello,

I have recently purchased my first MikroTik product - the hAP ax3 router. I was pleased to discover it supports container images and was eager to test it. However, after building a custom Dradis-CE (https://github.com/dradis/dradis-ce) container image and uploading it into a router-attached SSD, I, unfortunately, couldn't get it to run. Every time I tried to start the container, it'd soon change the status to 'stopped.' After inspecting the logs, I only found these relevant lines that happened each time to start the container:
Buffer		memory
Topics		container, info, debug
Message		execve: No such file or directory
Here is my Docker image build script:
FROM ruby:3.1.2
MAINTAINER Someone Someone <me@mail.com>
# Need Node.JS to provide a JavaScript runtime for Rails
RUN apt-get update -qq && apt-get install -y nodejs
#Create top level dir otherwise we get plugins in the root
RUN mkdir dradis
# Clone only the v4.7.0 branch of Dradis
RUN cd dradis && git clone -b v4.7.0 --single-branch https://github.com/dradis/dradis-ce.git
# Set the work directory to be /dradisframework
WORKDIR /dradis/dradis-ce
# install the bundle (get an error on bin/setup if this doesn't go first)
RUN bundle install
# run the setup
#RUN ruby bin/setup
CMD ["ruby", "bin/setup"]
Any ideas as to what could be causing it?
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 385
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: RTOS v7.8 hAP ax3 fails to launch a Docker container

Wed Apr 19, 2023 12:53 pm

I tried building with your Dockerfile, but unfortunately build time outs during bundle install for me.
quick guess is that some PATH variable may be missing, could you please check if this works with:
container/envs/add key="PATH" value="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" name=test
add this env variable to container as well -
container print
container set 0 envlist=test
Upcoming beta will have reworked $PATH as well.
 
Miracles
just joined
Topic Author
Posts: 11
Joined: Fri Apr 14, 2023 2:28 pm

Re: RTOS v7.8 hAP ax3 fails to launch a Docker container

Fri Apr 21, 2023 3:59 pm

I tried building with your Dockerfile, but unfortunately build time outs during bundle install for me.
quick guess is that some PATH variable may be missing, could you please check if this works with:
container/envs/add key="PATH" value="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" name=test
add this env variable to container as well -
container print
container set 0 envlist=test
Upcoming beta will have reworked $PATH as well.
Thank you for your effort; however, upon closer inspection, I discovered that I stupidly built an AMD64 image on my Intel workstation instead of an ARM64/v8 one.

Who is online

Users browsing this forum: teleport and 2 guests