Im a having problems with finding my STLink on my Intel Nuc. When running lsusb
I see the devices. But when running st-util
it cant find any devices. There are other devices under this application and those have no issues.
Dockerfile:
FROM balenalib/%%BALENA_MACHINE_NAME%%-node:12.14.0-buster-build
# Update source lists for jessie since it got moved to archive
# RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived
# Set the timezone
# ADD timezone.sh ./timezone.sh
COPY timezone.sh /usr/src/app/timezone.sh
RUN chmod +x /usr/src/app/timezone.sh
RUN /usr/src/app/timezone.sh
# Copy the start script
# ADD start.sh ./start.sh
COPY start.sh /usr/src/app/start.sh
RUN chmod +x /usr/src/app/start.sh
# Copy the udev rules - from https://github.com/platformio/platformio-core/blob/develop/scripts/99-platformio-udev.rules
# ADD 99-platformio-udev.rules ./99-platformio-udev.rules
COPY 99-platformio-udev.rules /usr/src/app/99-platformio-udev.rules
# Copy systemd.mount files
# ADD mnt-L476RG.mount ./mnt-L476RG.mount
COPY mnt-L476RG.mount /usr/src/app/mnt-L476RG.mount
# Add in googles pub key
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# Add chrome repo
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
ENV container docker
# use apt-get if you need to install dependencies,
RUN apt-get update && apt-get install -yq \
systemd \
libudev-dev \
xvfb \
xauth \
libgconf-2-4 \
libusb-1.0-0-dev \
libgtk-3-0 \
libnotify-dev \
libnss3 libxss1 libasound2 libxtst6 \
xserver-xorg=1:7.7+19 \
xserver-xorg-input-evdev \
xinit \
xfce4 \
xfce4-terminal \
x11-xserver-utils \
dbus-x11 \
matchbox-keyboard \
xterm \
default-jre \
python python-pip libpython2.7 python-setuptools vim wget git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Get latest version of chrome and chromedriver
RUN apt-get update && \
apt-get install -y gnupg wget curl unzip --no-install-recommends && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
apt-get update -y && \
apt-get install -y google-chrome-stable && \
CHROMEVER=$(google-chrome --product-version | grep -o "[^\.]*\.[^\.]*\.[^\.]*") && \
DRIVERVER=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROMEVER") && \
wget -q --continue -P /chromedriver "http://chromedriver.storage.googleapis.com/$DRIVERVER/chromedriver_linux64.zip" && \
unzip /chromedriver/chromedriver* -d /chromedriver
# Defines our working directory in container
WORKDIR /usr/src/app
# Disable screen from turning it off
RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
&& echo "" >> /etc/X11/xinit/xserverrc \
&& echo 'exec /usr/bin/X -s 0 dpms' >> /etc/X11/xinit/xserverrc
# Manual install of Buildkite
# RUN wget https://github.com/buildkite/agent/releases/download/v2.6.6/buildkite-agent-linux-arm-2.6.6.tar.gz
RUN TOKEN="7a334c3fba7e68369bc42af7b7872b43910f83c628f2a58461" bash -c "`curl -sL https://raw.githubusercontent.com/buildkite/agent/master/install.sh`"
# Install PlatformIO
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
RUN pip --no-cache-dir install -U platformio==4.2.1
RUN mkdir -p /root/.platformio/packages/contrib-pysite
RUN cd /root/.platformio/packages/contrib-pysite
RUN sudo wget https://dl.bintray.com/platformio/dl-packages/contrib-pysite-linux_x86_64-2.27.181225.tar.gz
RUN sudo tar -zxvf contrib-pysite-linux_x86_64-2.27.181225.tar.gz
# Install Gulp
RUN npm install -g gulp
# Install Gulp CLI
# RUN npm install -g gulp-cli
# This will copy all files in our root to the working directory in the container
COPY . /usr/src/app
# Enable systemd init system in container
ENV INITSYSTEM on
# Start the Buildkite agent
CMD ["bash", "/usr/src/app/start.sh"]`