Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
PROJECT=swift-codeserver
SWIFT_VERSION=5.9.2

SWIFT_VERSION=6.2
2 changes: 1 addition & 1 deletion .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- features/*

env:
SWIFT_VERSION: 5.9.2
SWIFT_VERSION: 6.2

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main

env:
SWIFT_VERSION: 5.9.2
SWIFT_VERSION: 6.2

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [published]

env:
SWIFT_VERSION: 5.9.2
SWIFT_VERSION: 6.2

jobs:
build:
Expand Down
34 changes: 16 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,22 @@ COPY scripts/entrypoint.sh /entrypoint.sh
# ----------------------------------------------------------------------------------------
ARG SWIFT_VERSION
ENV SWIFT_VERSION=${SWIFT_VERSION}

# Install Swift (Swiftly)
# ----------------------------------------------------------------------------------------
WORKDIR /opt/swiftly
RUN curl -o /opt/swiftly/swiftly.tar.gz https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz
RUN tar zxf swiftly.tar.gz && \
./swiftly init --quiet-shell-followup -y && \
./swiftly install --use ${SWIFT_VERSION} && \
. ~/.local/share/swiftly/env.sh && \
hash -r \
RUN echo 'source /root/.local/share/swiftly/env.sh' >> /root/.bashrc
RUN /root/.local/share/swiftly/bin/swift --version
RUN ln -s /root/.local/share/swiftly/bin/swift /usr/bin/swift


WORKDIR /build
RUN echo "install..."; \
if [ "$(arch)" = "aarch64" ]; then \
ADD_ARCH="-$(arch)"; \
fi; \
echo "Arch: ${ADD_ARCH}"; \
echo "Version: ${SWIFT_VERSION}"; \
if [ -z ${SWIFT_VERSION+x} ]; then \
echo "Swift version is unset."; \
exit 1; \
fi; \
SWIFT_URL="https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2204${ADD_ARCH}/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04${ADD_ARCH}.tar.gz"; \
echo "Swift download from: ${SWIFT_URL}" > /swift_download.txt; \
wget ${SWIFT_URL}; \
tar -xvzf swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04${ADD_ARCH}.tar.gz; \
cd swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04${ADD_ARCH}; \
cp -rv -T ./usr/. /usr; \
cd /; rm -rf /build/__*; ##FIXME

# Install NodeJS
# ----------------------------------------------------------------------------------------
Expand Down Expand Up @@ -85,7 +83,7 @@ RUN pip install bash_kernel; python3 -m bash_kernel.install

# Setup System Preferences
# ----------------------------------------------------------------------------------------
ENV MAX_USER_INSTANCES 2048
ENV MAX_USER_INSTANCES=2048


# Setting the startp
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Pull the latest docker image from the registry:
docker pull ghcr.io/uitsmijter/swift-codeserver:latest
```

## Installed Version
- Swift 6.2

## Support
For help with the codeserver please visit our [discourse](https://discourse.uitsmijter.io) server.

Expand Down
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
echo "Swift Codeserver"
echo "Based on coder/code-server: https://github.com/coder/code-server"
echo "-----------------------------------------------------------------------------------"
echo "For Uitsmijter - Swift ${SWIFT_VERSION}"
VERSION=$(swift --version || echo ${SWIFT_VERSION})
echo "For Uitsmijter - Swift ${VERSION}"
echo ""
echo "Setup system"
echo ${MAX_USER_INSTANCES} > /proc/sys/fs/inotify/max_user_instances
Expand Down
2 changes: 0 additions & 2 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.7'

x-shared_environment: &shared_environment
SWIFT_VERSION: "${SWIFT_VERSION}"
COMMAND:
Expand Down
Loading