From 3bfd17e0e27a93570b7a1e2c3fadc64391be432f Mon Sep 17 00:00:00 2001 From: Gabe Mendoza Date: Mon, 21 Jul 2025 22:41:29 -0500 Subject: [PATCH] ubuntu fips --- .github/PULL_REQUEST_TEMPLATE.md | 51 ++++++++++++++------------------ Dockerfile | 34 ++++++++++----------- 2 files changed, 40 insertions(+), 45 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f92e7c7..f78f95a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,43 +1,38 @@ - +## Description -[linuxserverurl]: https://linuxserver.io -[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] +Required: Please provide a brief description of what this pull request is trying to accomplish. +> - +## Context, Consequences, & Considerations - - - - - +Required: Please step through the following list, pausing at each item to consider your change in relation to the item's context. +Check the box to mark that it applies, and enter your relevant notes under the item. +- [ ] Security: This has security implications. This includes (but not limited to) adding users, modifying user/app permissions, network rules/policies, changing a system interconnection, or changing an authorization strategy. + - [ ] This PR does not require security review. These changes are part of a project plan that has already undergone security review. The link is provided below. + - [ ] This PR requires security review. Add the `security` label to this PR then request a review from the [Security Code Reviewers Team](https://github.com/orgs/civisanalytics/teams/security-code-reviewers). - - - - - +> ------------------------------- +- [ ] Execution: This change requires commands to be run outside of the normal merge. - - [ ] I have read the [contributing](https://github.com/linuxserver/docker-code-server/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications +> ------------------------------- +- [ ] Impact: This change may cause service interruptions. - +> -## Description: - +- [ ] Testing: How did you test this change (unit tests, acceptance tests, etc.)? Did you do any manual testing? -## Benefits of this PR and context: - +> -## How Has This Been Tested? - - - +- [ ] Testing: How will you confirm this change once it's merged? +> -## Source / References: - +- [ ] Documentation: Documentation to reflect this change has been added to Confluence or Zendesk. + +> + +- [ ] **All items of the checklist have been considered and this PR description is complete.** diff --git a/Dockerfile b/Dockerfile index 9ac98d9..4a450f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,46 +1,46 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-ubuntu:noble +FROM gabemendoza1/cloudcode-baseimage-ubuntu-fips:jammy-22.04 # set version label ARG BUILD_DATE ARG VERSION ARG CODE_RELEASE LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" -LABEL maintainer="aptalca" +LABEL maintainer="civisanalytics" # environment settings ARG DEBIAN_FRONTEND="noninteractive" -ENV HOME="/config" +ENV HOME="/workspace" RUN \ echo "**** install runtime dependencies ****" && \ apt-get update && \ apt-get install -y \ - git \ - libatomic1 \ - nano \ - net-tools \ - sudo && \ + git \ + libatomic1 \ + nano \ + net-tools \ + sudo && \ echo "**** install code-server ****" && \ if [ -z ${CODE_RELEASE+x} ]; then \ - CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \ - | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \ + CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \ + | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \ fi && \ mkdir -p /app/code-server && \ curl -o \ - /tmp/code-server.tar.gz -L \ - "https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \ + /tmp/code-server.tar.gz -L \ + "https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \ tar xf /tmp/code-server.tar.gz -C \ - /app/code-server --strip-components=1 && \ + /app/code-server --strip-components=1 && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ echo "**** clean up ****" && \ apt-get clean && \ rm -rf \ - /config/* \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* + /config/* \ + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/* # add local files COPY /root /