Skip to content

Conversation

TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Sep 7, 2018

PR Summary

Add alpine preview image

  • This is needed to bootstrap the build of Alpine. See comments at the top of the Dockerfile
  • Also, adds the ability for an image to be Linux and use Windows version format

PR Checklist

@TravisEz13 TravisEz13 requested a review from anmenaga as a code owner September 7, 2018 22:07
&& apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
lttng-ust

RUN apk add --no-cache \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please combine these

# TODO: once the official build produces a full package for alpine, remove this region

# Download the powershell .tar.gz package
RUN curl -L -o /tmp/powershell.tar.gz https://github.com/TravisEz13/PowerShell/releases/download/v6.1.0-rc.1/powershell-6.1.0-fixalpine-linux-musl-x64.tar.gz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replace curl with ADD?

FROM alpine:3.8

ARG PS_VERSION=6.1.0-rc.1
ARG PS_VERSION_POSTFIX=-1.ubuntu.16.04
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove references to 16.04

@TravisEz13
Copy link
Member Author

@SteveL-MSFT I addressed your comments and I believe I fixed the build break


# Define Args for the needed to add the package
ARG PS_VERSION=6.1.0-rc.1
# TODO: once the official build produces a full package for alpine, update this to the full package

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is kind of misleading as the next line IS the full package. Or am i missing something?

# NOTE: the alpine tar.gz when this was written doesn't contain the modules. For that we need a container with modules.
# To accomplish this, we will get the modules from the full linux tar.gz package, then
# overlay the alpine tar.gz on top of it.
# There are TODO's in the file on updates that should occure one the Alpine .tar.gz contains everything

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo 'occur'

# Define Args for the needed to add the package
ARG PS_VERSION=6.1.0-rc.1
# TODO: once the official build produces a full package for alpine, update this to the full package
# TODO: once the official build produces a full package for alpine, update this to the full apline package
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: Alpine

@TravisEz13 TravisEz13 merged commit 1aeb06f into PowerShell:master Sep 11, 2018
@TravisEz13 TravisEz13 deleted the add_alpine branch September 11, 2018 22:25
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.

3 participants