linchpin 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/linchpin/cli.rb +4 -4
- data/lib/linchpin/dockerfiles/dotnet-Dockerfile.erb +2 -10
- data/lib/linchpin/templater.rb +2 -2
- data/lib/linchpin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 726a3e18669c9834aa2614b269f656e4c120cc754ddfff6aaeabc38498181e50
|
4
|
+
data.tar.gz: 6cf127bfadb9650e74289e62b87d71af7bbf58cc8fda097c06ffe0c6fd942d19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9ec24c7ed913b20587b25186f2382663ae4a9e840186f1004da5f3418cd2c83fbd6b83a41663bbd69ad4be313cdaf5ac8c95167533026085a1aee15c6cafdd
|
7
|
+
data.tar.gz: 581316ac677c7c74b6129b7e29ef0c48da386eaea2a3dff295acd5e59766245ee64bb02dfac12338bbea003825b2faccc656394cfe45ee442452f56770d85e10
|
data/lib/linchpin/cli.rb
CHANGED
@@ -78,23 +78,23 @@ class LinchpinCLI < Thor
|
|
78
78
|
def build_dotnet(app_name, version)
|
79
79
|
entry_dir = ''
|
80
80
|
Find.find('./') do |path|
|
81
|
-
if path =~ /.*Program\.cs$/ and !path.include? 'common' and !path.include? 'obj'
|
81
|
+
if path =~ /.*Program\.cs$/ and !path.include? 'common' and !path.include? 'obj' and path.include? 'API'
|
82
82
|
puts "Found #{path}"
|
83
83
|
entry_dir = File.dirname(path)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
|
87
|
+
entry_project = ''
|
88
88
|
Find.find(entry_dir) do |path|
|
89
89
|
if path =~ /.*\.csproj$/
|
90
|
-
|
90
|
+
entry_project = File.basename(path, ".csproj")
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
94
|
|
95
95
|
file = Tempfile.new('Dockerfile')
|
96
96
|
dockerfile = file.path
|
97
|
-
file.write(Linchpin::Templater.new(
|
97
|
+
file.write(Linchpin::Templater.new(entry_project).render)
|
98
98
|
file.rewind # => "hello world"
|
99
99
|
file.close
|
100
100
|
|
@@ -6,24 +6,16 @@ FROM microsoft/dotnet:2.2.100-sdk AS build
|
|
6
6
|
WORKDIR /src
|
7
7
|
COPY . .
|
8
8
|
RUN ls -la
|
9
|
-
# WORKDIR /src/Catalog.API
|
10
9
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
11
|
-
# RUN dotnet build --no-restore -c Release -o /app
|
12
10
|
RUN dotnet build --no-restore -c Release
|
13
11
|
|
14
|
-
FROM build as unittest
|
15
|
-
WORKDIR /src/Catalog.UnitTests
|
16
|
-
|
17
|
-
FROM build as functionaltest
|
18
|
-
WORKDIR /src/Catalog.FunctionalTests
|
19
|
-
|
20
12
|
FROM build AS publish
|
21
13
|
RUN dotnet publish --no-restore -c Release -o bin/deploy
|
22
14
|
|
23
15
|
FROM base AS final
|
24
16
|
RUN curl -s https://raw.githubusercontent.com/envkey/envkey-source/master/install.sh | bash
|
25
17
|
WORKDIR /app
|
26
|
-
COPY --from=publish /src
|
18
|
+
COPY --from=publish /src/<%= @entry_project %>/bin/deploy .
|
27
19
|
RUN mkdir -p /opt/appdynamics/dotnet
|
28
20
|
ADD appd/libappdprofiler.so /opt/appdynamics/dotnet/
|
29
21
|
ADD appd/AppDynamics.Agent.netstandard.dll /opt/appdynamics/dotnet/
|
@@ -31,4 +23,4 @@ ADD appd/AppDynamics.Agent.netstandard.dll /opt/appdynamics/dotnet/
|
|
31
23
|
ENV CORECLR_PROFILER={57e1aa68-2229-41aa-9931-a6e93bbc64d8} \
|
32
24
|
CORECLR_ENABLE_PROFILING=1 \
|
33
25
|
CORECLR_PROFILER_PATH=/opt/appdynamics/dotnet/libappdprofiler.so
|
34
|
-
CMD eval $(envkey-source) && dotnet <%= @
|
26
|
+
CMD eval $(envkey-source) && dotnet <%= @entry_project %>.dll
|
data/lib/linchpin/templater.rb
CHANGED
@@ -5,8 +5,8 @@ module Linchpin
|
|
5
5
|
class Templater
|
6
6
|
include ERB::Util
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@
|
8
|
+
def initialize(entry_project)
|
9
|
+
@entry_project = entry_project
|
10
10
|
@template_loc = File.join(File.join(File.dirname(File.expand_path(__FILE__)), 'dockerfiles'),'dotnet-Dockerfile.erb')
|
11
11
|
end
|
12
12
|
|
data/lib/linchpin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linchpin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Everton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|