Skip to content

Commit 508af80

Browse files
committed
Initial commit
0 parents  commit 508af80

File tree

5 files changed

+457
-0
lines changed

5 files changed

+457
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin\
2+
obj\

.gitignore

Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
##
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5+
6+
# User-specific files
7+
*.suo
8+
*.user
9+
*.userosscache
10+
*.sln.docstates
11+
12+
# User-specific files (MonoDevelop/Xamarin Studio)
13+
*.userprefs
14+
15+
# Build results
16+
[Dd]ebug/
17+
[Dd]ebugPublic/
18+
[Rr]elease/
19+
[Rr]eleases/
20+
x64/
21+
x86/
22+
bld/
23+
[Bb]in/
24+
[Oo]bj/
25+
[Ll]og/
26+
BenchmarkDotNet.Artifacts/
27+
28+
# Visual Studio 2015 cache/options directory
29+
.vs/
30+
# Uncomment if you have tasks that create the project's static files in wwwroot
31+
#wwwroot/
32+
33+
# MSTest test Results
34+
[Tt]est[Rr]esult*/
35+
[Bb]uild[Ll]og.*
36+
37+
# NUNIT
38+
*.VisualState.xml
39+
TestResult.xml
40+
41+
# Build Results of an ATL Project
42+
[Dd]ebugPS/
43+
[Rr]eleasePS/
44+
dlldata.c
45+
*.binlog
46+
Logs/
47+
# .NET Core
48+
project.lock.json
49+
project.fragment.lock.json
50+
[Aa]rtifacts/
51+
**/Properties/launchSettings.json
52+
53+
*_i.c
54+
*_p.c
55+
*_i.h
56+
*.ilk
57+
*.meta
58+
*.obj
59+
*.pch
60+
*.pdb
61+
*.pgc
62+
*.pgd
63+
*.rsp
64+
*.sbr
65+
*.tlb
66+
*.tli
67+
*.tlh
68+
*.tmp
69+
*.tmp_proj
70+
*.log
71+
*.vspscc
72+
*.vssscc
73+
.builds
74+
*.pidb
75+
*.svclog
76+
*.scc
77+
*.txt
78+
79+
# Chutzpah Test files
80+
_Chutzpah*
81+
82+
# Visual C++ cache files
83+
ipch/
84+
*.aps
85+
*.ncb
86+
*.opendb
87+
*.opensdf
88+
*.sdf
89+
*.cachefile
90+
*.VC.db
91+
*.VC.VC.opendb
92+
93+
# Visual Studio profiler
94+
*.psess
95+
*.vsp
96+
*.vspx
97+
*.sap
98+
99+
# TFS 2012 Local Workspace
100+
$tf/
101+
102+
# Guidance Automation Toolkit
103+
*.gpState
104+
105+
# ReSharper is a .NET coding add-in
106+
_ReSharper*/
107+
*.[Rr]e[Ss]harper
108+
*.DotSettings.user
109+
110+
# JustCode is a .NET coding add-in
111+
.JustCode
112+
113+
# TeamCity is a build add-in
114+
_TeamCity*
115+
116+
# DotCover is a Code Coverage Tool
117+
*.dotCover
118+
119+
# Visual Studio code coverage results
120+
*.coverage
121+
*.coveragexml
122+
123+
# NCrunch
124+
_NCrunch_*
125+
.*crunch*.local.xml
126+
nCrunchTemp_*
127+
128+
# MightyMoose
129+
*.mm.*
130+
AutoTest.Net/
131+
132+
# Web workbench (sass)
133+
.sass-cache/
134+
135+
# Installshield output folder
136+
[Ee]xpress/
137+
138+
# DocProject is a documentation generator add-in
139+
DocProject/buildhelp/
140+
DocProject/Help/*.HxT
141+
DocProject/Help/*.HxC
142+
DocProject/Help/*.hhc
143+
DocProject/Help/*.hhk
144+
DocProject/Help/*.hhp
145+
DocProject/Help/Html2
146+
DocProject/Help/html
147+
148+
# Click-Once directory
149+
publish/
150+
151+
# Publish Web Output
152+
*.[Pp]ublish.xml
153+
*.azurePubxml
154+
# TODO: Comment the next line if you want to checkin your web deploy settings
155+
# but database connection strings (with potential passwords) will be unencrypted
156+
*.pubxml
157+
*.publishproj
158+
159+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
160+
# checkin your Azure Web App publish settings, but sensitive information contained
161+
# in these scripts will be unencrypted
162+
PublishScripts/
163+
164+
# NuGet Packages
165+
*.nupkg
166+
# The packages folder can be ignored because of Package Restore
167+
**/packages/*
168+
# except build/, which is used as an MSBuild target.
169+
!**/packages/build/
170+
# Uncomment if necessary however generally it will be regenerated when needed
171+
#!**/packages/repositories.config
172+
# NuGet v3's project.json files produces more ignorable files
173+
*.nuget.props
174+
*.nuget.targets
175+
176+
# Microsoft Azure Build Output
177+
csx/
178+
*.build.csdef
179+
180+
# Microsoft Azure Emulator
181+
ecf/
182+
rcf/
183+
184+
# Windows Store app package directories and files
185+
AppPackages/
186+
BundleArtifacts/
187+
Package.StoreAssociation.xml
188+
_pkginfo.txt
189+
190+
# Visual Studio cache files
191+
# files ending in .cache can be ignored
192+
*.[Cc]ache
193+
# but keep track of directories ending in .cache
194+
!*.[Cc]ache/
195+
196+
# Others
197+
ClientBin/
198+
~$*
199+
*~
200+
*.dbmdl
201+
*.dbproj.schemaview
202+
*.jfm
203+
*.pfx
204+
*.publishsettings
205+
orleans.codegen.cs
206+
207+
# Since there are multiple workflows, uncomment next line to ignore bower_components
208+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
209+
#bower_components/
210+
211+
# RIA/Silverlight projects
212+
Generated_Code/
213+
214+
# Backup & report files from converting an old project file
215+
# to a newer Visual Studio version. Backup files are not needed,
216+
# because we have git ;-)
217+
_UpgradeReport_Files/
218+
Backup*/
219+
UpgradeLog*.XML
220+
UpgradeLog*.htm
221+
222+
# SQL Server files
223+
*.mdf
224+
*.ldf
225+
*.ndf
226+
227+
# Business Intelligence projects
228+
*.rdl.data
229+
*.bim.layout
230+
*.bim_*.settings
231+
232+
# Microsoft Fakes
233+
FakesAssemblies/
234+
235+
# GhostDoc plugin setting file
236+
*.GhostDoc.xml
237+
238+
# Node.js Tools for Visual Studio
239+
.ntvs_analysis.dat
240+
node_modules/
241+
242+
# Typescript v1 declaration files
243+
typings/
244+
245+
# Visual Studio 6 build log
246+
*.plg
247+
248+
# Visual Studio 6 workspace options file
249+
*.opt
250+
251+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
252+
*.vbw
253+
254+
# Visual Studio LightSwitch build output
255+
**/*.HTMLClient/GeneratedArtifacts
256+
**/*.DesktopClient/GeneratedArtifacts
257+
**/*.DesktopClient/ModelManifest.xml
258+
**/*.Server/GeneratedArtifacts
259+
**/*.Server/ModelManifest.xml
260+
_Pvt_Extensions
261+
262+
# Paket dependency manager
263+
.paket/paket.exe
264+
paket-files/
265+
266+
# FAKE - F# Make
267+
.fake/
268+
.ionide/
269+
270+
# JetBrains Rider
271+
.idea/
272+
*.sln.iml
273+
274+
# CodeRush
275+
.cr/
276+
277+
# Python Tools for Visual Studio (PTVS)
278+
__pycache__/
279+
*.pyc
280+
281+
# Cake - Uncomment if you are using it
282+
# tools/**
283+
# !tools/packages.config
284+
285+
# Telerik's JustMock configuration file
286+
*.jmconfig
287+
288+
# BizTalk build output
289+
*.btp.cs
290+
*.btm.cs
291+
*.odx.cs
292+
*.xsd.cs

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
2+
WORKDIR /app
3+
4+
# Copy csproj and restore as distinct layers
5+
COPY *.csproj ./
6+
RUN dotnet restore
7+
8+
# Copy everything else and build
9+
COPY . ./
10+
RUN dotnet publish -c Release -o out
11+
12+
# Build runtime image
13+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster
14+
WORKDIR /app
15+
COPY --from=build-env /app/out .
16+
ENTRYPOINT ["dotnet", "GridFSCleaner.dll"]

GridFSCleaner.csproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Worker">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<LangVersion>latest</LangVersion>
6+
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="MongoDB.Driver" Version="2.10.4" />
11+
<PackageReference Include="MongoDB.Driver.Core" Version="2.10.4" />
12+
<PackageReference Include="MongoDB.Bson" Version="2.10.4" />
13+
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.10.4" />
14+
<PackageReference Include="Serilog" Version="2.9.0" />
15+
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
16+
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
17+
<PackageReference Include="System.Collections" Version="4.3.0" />
18+
</ItemGroup>
19+
20+
</Project>
21+

0 commit comments

Comments
 (0)