-
Notifications
You must be signed in to change notification settings - Fork 148
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
WakaTime not working inside alpine docker container without glibc. #180
Comments
It seems that in another ubuntu container it works properly... |
Steps to reproduce:
I think a package is missing, but I can't figure out what... FROM alpine:edge as dev
# Add apk repository
RUN apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ tini && \
# Install PHP8 dependencies and build dependencies
apk --no-cache \
add \
bash \
ca-certificates \
curl \
git \
nodejs \
npm \
php8 \
php8-sqlite3 \
php8-mbstring \
php8-curl \
php8-openssl \
php8-xmlreader \
php8-phar \
php8-dom \
php8-pcntl \
php8-tokenizer \
php8-xml \
php8-simplexml \
php8-iconv \
php8-pecl-ast \
php8-xmlwriter && \
apk update && \
# Todo: find a way to install "php8" as "php" command.
mv /usr/bin/php8 /usr/bin/php && \
echo "post_max_size=1020M" >> /etc/php8/php.ini && \
echo "memory_limit = 2048M" >> /etc/php8/php.ini && \
# Install Composer.
cd /tmp && \
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php --install-dir=/usr/bin --filename=composer && \
php -r "unlink('composer-setup.php');"
# Keep Container open.
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
CMD [ "while true; do sleep 1000; done" ] |
I fixed this by changed FROM to use an alpine image with glibc: https://hub.docker.com/r/frolvlad/alpine-glibc/ |
Try adding these lines to your
Then restart VS Code. Does that fix it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I want to use WakaTime inside a docker container, with alpine Linux. All my other extension work good, but WakaTime is not working.
It says that creates a log file inside the root directory, but I don't see being created.
This is what it says in developer workbrench, with debug enabled:
The text was updated successfully, but these errors were encountered: