Open DanuulKa03 opened 1 month ago
What are you trying to accomplish?
I am trying to achieve building my project for the Android platform. After that, I want to run this application inside a Docker container, displaying the output through X11.
To build the app for Android you can simply use the image in docker hub. I've never run an apk in a container, so can't help with that, sorry.
Hello! I have analyzed and concluded that, to start, I only need the qt-dev
Docker image for application development purposes. Then, I would use qt-builder
for building on other platforms, such as different Android versions, etc. Did I understand this correctly?
The next thing I would really like your help with is understanding the following. I created my own Dockerfile:
# Base image
FROM carlonluca/qt-dev:6.8.0
# Copy the current directory to /firmware in the container
COPY . /firmware
WORKDIR /firmware
# Install necessary packages and configure Git
RUN git config --global --add safe.directory /firmware && \
apt update && \
apt -y install openssh-server rsync
# Configure SSH server
RUN mkdir /var/run/sshd && \
echo 'root:root' | chpasswd && \
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && \
echo "export VISIBLE=now" >> /etc/profile && \
useradd -ms /bin/bash tvgu && \
echo 'tvgu:tvgu' | chpasswd
# Set environment variable for user visibility
ENV NOTVISIBLE "in users profile"
# Command to run the SSH server
CMD ["/usr/sbin/sshd", "-D"]
# Expose ports 22 (for SSH) and 7777
EXPOSE 22 7777
Everything works perfectly, but I don’t understand how to start building the project for my computer.
Good day!
I was trying to set up Qt 6.8.0. Your Dockerfile was supposed to help with setting up my project, but I couldn't get it to run. I tried to run the Dockerfile itself, but I encountered the following error:
Here is the structure of my project:
Can you please advise me on what I might be doing wrong?