Skip to content
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

🛠 Make automatically recognize new versions #3

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

kimlulz
Copy link

@kimlulz kimlulz commented Jun 18, 2024

  1. Changed git url
    https://github.com/cdr/code-server -> https://github.com/coder/code-server
  2. Added the process of checking the released latest version using Github API.
    So, It doesn't need to manually modify the version in the dockerfile.
      VERSION=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
wget https://github.com/coder/code-server/releases/download/v${VERSION}/code-server-${VERSION}-linux-amd64.tar.gz && \
tar x -zf code-server-${VERSION}-linux-amd64.tar.gz && \

Need to test, but i think it will work properly

@kimlulz
Copy link
Author

kimlulz commented Jun 18, 2024

63a0d3f 1dd1670
Changed wget to curl

@martinussuherman
Copy link
Owner

Thank you for the PR, please give me some time to try it first, if everything is okay then I'll merge your PR

@kimlulz
Copy link
Author

kimlulz commented Jun 24, 2024

Removed commands cuz the structure between latest version and previous version is different...

rm code-server-${VERSION}-linux-{arch}/node && \
rm code-server-${VERSION}-linux-{arch}/code-server && \

image
image

Still occur errors on snyk action, but docker image successfully built and pushed! (used my docker repo for test)

@kimlulz
Copy link
Author

kimlulz commented Jun 24, 2024

Test

version: '3'

services:
  code-server:
    image: kimlulz/alpine-code-server:latest
    environment:
      - TZ=Asia/Seoul
      - EUID=1001
      - EGID=1001
    volumes:
      - /data/alpine-code-server/work:/home/vscode
    ports:
      - 1360:8080

image
🤔🤔🤔

@kimlulz
Copy link
Author

kimlulz commented Jun 24, 2024

Modified dockerfile refer to https://github.com/marktolson/alpine-code-server

image
IT WORKS!!!

Future plan
  • update readme.md
  • make upload build and push weekly/monthly
  • rework docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants