Skip to content

Commit 84fbbae

Browse files
Merge pull request #26 from petabridge/dev
v0.2.4 Release
2 parents a427bd7 + 78eb261 commit 84fbbae

File tree

12 files changed

+63
-20
lines changed

12 files changed

+63
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Cluster.WebCrawler
2-
K8s, DevOps-ified version of the Akka.Cluster WebCrawler code sample
2+
K8s, DevOps-ified version of the Akka.Cluster WebCrawler code sample.

RELEASE_NOTES.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
#### 0.2.3 Feb 08 2019 ####
2-
* Made it possible to tag all WebCrawler docker images more easily via `build.fsx`.
3-
* Made `build.sh` executable.
1+
#### 0.2.4 April 14 2019 ####
2+
* Upgraded to [Petabridge.Cmd v0.5.0](https://cmd.petabridge.com/articles/RELEASE_NOTES.html#v050-march-05-2019) so we could take advantage of the `cluster tail` command.

build.fsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,21 @@ Target "AssemblyInfo" (fun _ ->
6969
)
7070

7171
Target "RestorePackages" (fun _ ->
72-
DotNetCli.Restore
73-
(fun p ->
74-
{ p with
75-
Project = solutionFile
76-
NoCache = false })
72+
let customSource = getBuildParamOrDefault "customNuGetSource" ""
73+
74+
if(hasBuildParam "customNuGetSource") then
75+
DotNetCli.Restore
76+
(fun p ->
77+
{ p with
78+
Project = solutionFile
79+
NoCache = false
80+
AdditionalArgs = [sprintf "-s %s -s https://api.nuget.org/v3/index.json" customSource]})
81+
else
82+
DotNetCli.Restore
83+
(fun p ->
84+
{ p with
85+
Project = solutionFile
86+
NoCache = false })
7787
)
7888

7989
Target "Build" (fun _ ->
@@ -405,7 +415,7 @@ Target "PrepareDeploy" DoNothing
405415
"Clean" ==> "RestorePackages" ==> "BuildRelease" ==> "Docfx"
406416

407417
// Docker
408-
"Clean" ==> "PublishCode" ==> "BuildDockerImages" ==> "Docker"
418+
"BuildRelease" ==> "PublishCode" ==> "BuildDockerImages" ==> "Docker"
409419

410420
// all
411421
"BuildRelease" ==> "All"
@@ -414,6 +424,6 @@ Target "PrepareDeploy" DoNothing
414424
"Nuget" ==> "All"
415425

416426
// Deploy
417-
"BuildRelease" ==> "Docker" ==> "PrepareDeploy"
427+
"Docker" ==> "PrepareDeploy"
418428

419429
RunTargetOrDefault "Help"

src/WebCrawler.Web/Controllers/HomeController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ namespace WebCrawler.Web.Controllers
88
{
99
public class HomeController : Controller
1010
{
11+
public static readonly string Version = typeof(HomeController).Assembly.GetName().Version.ToString();
12+
1113
public IActionResult Index()
1214
{
15+
ViewBag.AppVersion = Version;
1316
return View();
1417
}
1518
}

src/WebCrawler.Web/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="jumbotron">
77
<h1>Web Crawler of Doom</h1>
8-
<p class="lead">Akka.NET on Gorilla Steroids</p>
8+
<p class="lead">Akka.NET on Gorilla Steroids - Version (@ViewBag.AppVersion)</p>
99
<p><a href="http://getakka.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
1010
</div>
1111

src/common.props

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<PropertyGroup>
33
<Copyright>Copyright © 2015-2019 Petabridge, LLC</Copyright>
44
<Authors>Petabridge</Authors>
5-
<VersionPrefix>0.2.3</VersionPrefix>
6-
<PackageReleaseNotes>Made it possible to tag all WebCrawler docker images more easily via `build.fsx`.
7-
Made `build.sh` executable.</PackageReleaseNotes>
5+
<VersionPrefix>0.2.4</VersionPrefix>
6+
<PackageReleaseNotes>Upgraded to [Petabridge.Cmd v0.5.0](https://cmd.petabridge.com/articles/RELEASE_NOTES.html#v050-march-05-2019) so we could take advantage of the `cluster tail` command.</PackageReleaseNotes>
87
<PackageIconUrl>
98
</PackageIconUrl>
109
<PackageProjectUrl>
@@ -18,7 +17,7 @@ Made `build.sh` executable.</PackageReleaseNotes>
1817
<AkkaVersion>1.3.11</AkkaVersion>
1918
<AkkaBootstrapVersion>0.2.0</AkkaBootstrapVersion>
2019
<AkkaHealthCheckVersion>0.1.0</AkkaHealthCheckVersion>
21-
<PetabridgeCmdVersion>0.4.1</PetabridgeCmdVersion>
20+
<PetabridgeCmdVersion>0.5.0</PetabridgeCmdVersion>
2221
<NetCoreVersion>netcoreapp2.1</NetCoreVersion>
2322
</PropertyGroup>
2423
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: tiller
6+
namespace: kube-system
7+
---
8+
apiVersion: rbac.authorization.k8s.io/v1beta1
9+
kind: ClusterRoleBinding
10+
metadata:
11+
name: tiller
12+
roleRef:
13+
apiGroup: rbac.authorization.k8s.io
14+
kind: ClusterRole
15+
name: cluster-admin
16+
subjects:
17+
- kind: ServiceAccount
18+
name: tiller
19+
namespace: kube-system
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: web-cluster-http
5+
labels:
6+
app: web-cluster
7+
spec:
8+
type: LoadBalancer
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
selector:
13+
app: web-cluster

yaml/k8s-crawler-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
terminationGracePeriodSeconds: 35
3232
containers:
3333
- name: crawler
34-
image: webcrawler.crawlservice:0.2.2
34+
image: webcrawler.crawlservice:0.2.4
3535
lifecycle:
3636
preStop:
3737
exec:

yaml/k8s-lighthouse-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
terminationGracePeriodSeconds: 35
3232
containers:
3333
- name: lighthouse
34-
image: webcrawler.lighthouse:0.2.2
34+
image: webcrawler.lighthouse:0.2.4
3535
lifecycle:
3636
preStop:
3737
exec:

0 commit comments

Comments
 (0)