Skip to content

Commit

Permalink
Specify versions of required modules
Browse files Browse the repository at this point in the history
  • Loading branch information
devblackops committed Jun 6, 2019
1 parent e5025da commit 0a3c25e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Added missing parameter `$PreExecuteMiddlewareHooks` to `New-PoshBotConfiguration`

### Changed

- Pinned modules `Configuration` to `1.3.1` and `PSSlack` to `1.0.0`

## [0.11.6] 2019-04-02

### Added
Expand Down
5 changes: 4 additions & 1 deletion PoshBot/PoshBot.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ PowerShellVersion = '5.0'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @('Configuration', 'PSSlack')
RequiredModules = @(
@{ModuleName = 'Configuration'; ModuleVersion = '1.3.1'}
@{ModuleName = 'PSSlack'; ModuleVersion = '1.0.0'}
)

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
Expand Down
5 changes: 3 additions & 2 deletions docker/ubuntu16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
FROM mcr.microsoft.com/powershell:ubuntu-16.04 as base
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; \
Install-Module Configuration -RequiredVersion 1.3.1 -Repository PSGallery -Verbose:$false; \
Install-Module PSSlack -RequiredVersion 0.1.2 -Repository PSGallery -Verbose:$false;
Install-Module Configuration -RequiredVersion 1.3.1 -Repository PSGallery -Scope AllUsers -Verbose; \
Install-Module PSSlack -RequiredVersion 1.0.0 -Repository PSGallery -Scope AllUsers -Verbose;

FROM base as src
LABEL maintainer="devblackops"
Expand All @@ -13,5 +13,6 @@ COPY ["/out/poshbot", "/opt/microsoft/powershell/6/Modules/PoshBot/"]
COPY ["/docker/docker_entrypoint.ps1", "/poshbot/docker_entrypoint.ps1"]
WORKDIR /poshbot/
VOLUME ["/poshbot_data"]
VOLUME ["/root/.local/share/powershell/Modules"]
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
CMD ["pwsh", "docker_entrypoint.ps1"]

0 comments on commit 0a3c25e

Please sign in to comment.